export declare class JsonFileReadError extends Error { readonly filePath: string; readonly reason: "read" | "parse"; constructor(filePath: string, reason: "read" | "parse", cause: unknown); } export declare function readJsonFile(filePath: string): Promise; export declare function readDurableJsonFile(filePath: string): Promise; export declare function readJsonFileSync(filePath: string): unknown; export declare function writeJsonAtomic(filePath: string, value: unknown, options?: { mode?: number; trailingNewline?: boolean; ensureDirMode?: number; }): Promise; export declare function writeTextAtomic(filePath: string, content: string, options?: { mode?: number; ensureDirMode?: number; appendTrailingNewline?: boolean; }): Promise; export declare function createAsyncLock(): (fn: () => Promise) => Promise;