nitro-renderer/packages/configuration/src/IConfigurationManager.ts
2024-03-19 21:53:17 -04:00

13 lines
477 B
TypeScript

export interface IConfigurationManager
{
init(): Promise<void>;
reloadConfiguration(): Promise<void>;
resetConfiguration(): void;
parseConfiguration(data: { [index: string]: any }, overrides?: boolean): boolean;
interpolate(value: string, regex?: RegExp): string;
getValue<T>(key: string, value?: T): T;
setValue<T>(key: string, value: T): void;
getDefaultConfig(): { [index: string]: any };
readonly definitions: Map<string, unknown>;
}