import type { Awaitable, JsonValue } from '@alwatr/type-helper'; /** * Enhanced read json file (async). * * @param path - file path * @returns json object * @example * ```typescript * const fileContent = await readJson('./file.json'); * ``` */ export declare function readJson(path: string): Promise; /** * Enhanced read json file (sync). * * @param path - file path * @param sync - sync mode * @returns json object * @example * ```typescript * const fileContent = readJson('./file.json', true); * ``` */ export declare function readJson(path: string, sync: true): T; /** * Enhanced read json file. * * @param path - file path * @param sync - sync mode * @returns json object * @example * ```typescript * const fileContent = await readJson('./file.json', sync); * ``` */ export declare function readJson(path: string, sync: boolean): Awaitable; //# sourceMappingURL=read-json.d.ts.map