// Type definitions for write-json-file 2.2 // Project: https://github.com/sindresorhus/write-json-file // Definitions by: Denis Carriere // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function writeJsonFile(filepath: string, data: any, options?: writeJsonFile.Options): Promise; declare namespace writeJsonFile { type Replacer = (key: string, value: any) => void; interface Options { indent?: string | number; detectIndent?: boolean; sortKeys?: boolean; replacer?: Replacer | Array | null; mode?: number; } function sync(filepath: string, data: any, options?: Options): void; } export = writeJsonFile;