// Type definitions for conf 1.4 // Project: https://github.com/sindresorhus/conf // Definitions by: Sam Verschueren // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 interface Options { defaults?: {[key: string]: T}; configName?: string; projectName?: string; cwd?: string; } declare class Conf implements Iterable<[string, T]> { store: {[key: string]: T}; readonly path: string; readonly size: number; constructor(options?: Options); get(key: string, defaultValue?: T): T; set(key: string, val: T): void; set(object: {[key: string]: T}): void; has(key: string): boolean; delete(key: string): void; clear(): void; onDidChange(key: string, callback: (oldVal: any, newVal: any) => void): void; [Symbol.iterator](): Iterator<[string, T]>; } export = Conf;