UNPKG

@contentstack/cli-utilities

Version:

Utilities for contentstack projects

31 lines (30 loc) 1.04 kB
import Conf from 'conf'; declare class Config { private config; private inMemoryStore; private isPrepackMode; constructor(); init(): Conf<Record<string, unknown>>; importOldConfig(): void; setOldConfigStoreData(data: any, _path?: string): void; isConfigFileValid(configPath: string): boolean; safeDeleteConfigIfInvalid(configFilePath: string): void; removeOldConfigStoreFile(): void; private getOldConfig; private fallbackInit; private getObfuscationKey; private getConfigDataAndUnlinkConfigFile; private getEncryptedConfig; private getDecryptedConfig; get(key: any): string | any; set(key: any, value: any): this | Conf<Record<string, unknown>>; delete(key: any): this | Conf<Record<string, unknown>>; clear(): void; } declare const lazyConfig: { get(key: string): any; set(key: string, value: any): Config | Conf<Record<string, unknown>>; delete(key: string): Config | Conf<Record<string, unknown>>; clear(): void; }; export default lazyConfig;