import type { Awaitable, JsonValue } from '@alwatr/type-helper'; /** * Enhanced write json file (Asynchronous). * * @param path - file path * @param data - json object * @example * ```typescript * await writeJsonFile('./file.json', { a:1, b:2, c:3 }); * ``` */ export declare function writeJson(path: string, data: T, sync?: false): Promise; /** * Enhanced write json file (Synchronous). * * @param path - file path * @param data - json object * @param sync - sync mode * @example * ```typescript * writeJsonFile('./file.json', { a:1, b:2, c:3 }, true); * ``` */ export declare function writeJson(path: string, data: T, sync: true): void; /** * Enhanced write json file. * * @param path - file path * @param data - json object * @param sync - sync mode * @example * ```typescript * await writeJsonFile('./file.json', { a:1, b:2, c:3 }, sync); * ``` */ export declare function writeJson(path: string, data: T, sync: boolean): Awaitable; //# sourceMappingURL=write-json.d.ts.map