UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

9 lines • 590 B
import "@openclaw/fs-safe/advanced"; import "@openclaw/fs-safe/atomic"; import { writeJsonSync } from "@openclaw/fs-safe/json"; /** Read small JSON blobs synchronously for token/state caches. */ export declare function loadJsonFile<T = unknown>(filePath: string): T | undefined; /** Persist small JSON blobs synchronously with restrictive permissions. */ export declare const saveJsonFile: typeof writeJsonSync; /** Write JSON with secure file permissions and atomic replacement semantics. */ export declare function writeJsonFileAtomically(filePath: string, value: unknown): Promise<void>;