UNPKG

@snow-tzu/type-config

Version:

Core configuration management system with Spring Boot-like features

38 lines 1.23 kB
export interface ConfigSource { load(): Promise<Record<string, any>>; priority: number; name?: string; } export declare class FileConfigSource implements ConfigSource { private filePath; priority: number; name?: string | undefined; constructor(filePath: string, priority?: number, name?: string | undefined); load(): Promise<Record<string, any>>; private parseEnvFile; } export declare class EnvConfigSource implements ConfigSource { private prefix; priority: number; name: string; constructor(prefix?: string, priority?: number, name?: string); load(): Promise<Record<string, any>>; private setNestedValue; } export declare class InMemoryConfigSource implements ConfigSource { private config; priority: number; name: string; constructor(config: Record<string, any>, priority?: number, name?: string); load(): Promise<Record<string, any>>; } export declare class EncryptionHelper { private secretKey; private algorithm; constructor(secretKey: string); encrypt(value: string): string; decrypt(value: string): string; isEncrypted(value: string): boolean; decryptObject(obj: any): any; } //# sourceMappingURL=sources.d.ts.map