agsamantha/node_modules/langchain/dist/stores/file/base.d.ts
2024-10-02 15:15:21 -05:00

9 lines
348 B
TypeScript

import { Serializable } from "@langchain/core/load/serializable";
/**
* Base class for all file stores. All file stores should extend this
* class.
*/
export declare abstract class BaseFileStore extends Serializable {
abstract readFile(path: string): Promise<string>;
abstract writeFile(path: string, contents: string): Promise<void>;
}