agsamantha/node_modules/langchain/dist/stores/file/base.d.ts

10 lines
348 B
TypeScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
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>;
}