10 lines
348 B
TypeScript
10 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>;
|
||
|
}
|