read-config-ng
Version:
Multi format configuration loader
22 lines • 687 B
TypeScript
import { ConfigObject } from '../../types.js';
/**
* Get the list of supported extensions
*/
export declare const extnames: string[];
/**
* Load a configuration file asynchronously
*/
export declare function load(filePath: string): Promise<ConfigObject>;
/**
* Load a configuration file synchronously
*/
export declare function loadSync(filePath: string): ConfigObject;
/**
* Parse configuration content asynchronously
*/
export declare function parse(format: string, content: string): Promise<ConfigObject>;
/**
* Parse configuration content synchronously
*/
export declare function parseSync(format: string, content: string): ConfigObject;
//# sourceMappingURL=index.d.ts.map