langgraph-checkpoint-filesystem
Version:
Langgraph checkpoint implementation based on file system
10 lines (9 loc) • 696 B
TypeScript
export declare const checkOrCreateFolder: (dirPath: string) => Promise<void>;
export declare const checkFileExists: (filePath: string) => Promise<boolean>;
export declare const writeBinary: (filePath: string, uint8Array: Uint8Array) => Promise<void>;
export declare const readBinary: (filePath: string) => Promise<Uint8Array<ArrayBuffer>>;
export declare const writeJSON: (filePath: string, data: any) => Promise<void>;
export declare const readJSON: (filePath: string) => Promise<any>;
export declare const safeDeleteFile: (filePath: string) => Promise<void>;
export declare const listFiles: (dir: string) => Promise<string[]>;
export declare const listDirs: (dir: string) => Promise<string[]>;