agsamantha/node_modules/langchain/dist/util/load.d.ts

4 lines
253 B
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
export type LoadValues = Record<string, any>;
export type FileLoader<T> = (text: string, filePath: string, values: LoadValues) => Promise<T>;
export declare const loadFromFile: <T>(uri: string, loader: FileLoader<T>, values?: LoadValues) => Promise<T>;