{"version":3,"file":"in_memory.d.cts","names":["Document","BaseStoreInterface","Docstore","InMemoryDocstore","Map","Promise","Record","AsyncGenerator","SynchronousInMemoryDocstore"],"sources":["../../../src/stores/doc/in_memory.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { BaseStoreInterface } from \"@langchain/core/stores\";\nimport { Docstore } from \"./base.js\";\n/**\n * Class for storing and retrieving documents in memory asynchronously.\n * Extends the Docstore class.\n */\nexport declare class InMemoryDocstore extends Docstore implements BaseStoreInterface<string, Document> {\n    _docs: Map<string, Document>;\n    constructor(docs?: Map<string, Document>);\n    /**\n     * Searches for a document in the store based on its ID.\n     * @param search The ID of the document to search for.\n     * @returns The document with the given ID.\n     */\n    search(search: string): Promise<Document>;\n    /**\n     * Adds new documents to the store.\n     * @param texts An object where the keys are document IDs and the values are the documents themselves.\n     * @returns Void\n     */\n    add(texts: Record<string, Document>): Promise<void>;\n    mget(keys: string[]): Promise<Document[]>;\n    mset(keyValuePairs: [string, Document][]): Promise<void>;\n    mdelete(_keys: string[]): Promise<void>;\n    // eslint-disable-next-line require-yield\n    yieldKeys(_prefix?: string): AsyncGenerator<string>;\n}\n/**\n * Class for storing and retrieving documents in memory synchronously.\n */\nexport declare class SynchronousInMemoryDocstore {\n    _docs: Map<string, Document>;\n    constructor(docs?: Map<string, Document>);\n    /**\n     * Searches for a document in the store based on its ID.\n     * @param search The ID of the document to search for.\n     * @returns The document with the given ID.\n     */\n    search(search: string): Document;\n    /**\n     * Adds new documents to the store.\n     * @param texts An object where the keys are document IDs and the values are the documents themselves.\n     * @returns Void\n     */\n    add(texts: Record<string, Document>): void;\n}\n"],"mappings":";;;;;;;;AAOA;;AAA6FA,cAAxEG,gBAAAA,SAAyBD,QAAAA,YAAoBD,kBAA2BD,CAAAA,MAAAA,EAAAA,QAAAA,CAAAA,CAAAA;EAAQ,KAC9EA,EAAZI,GAAYJ,CAAAA,MAAAA,EAAAA,QAAAA,CAAAA;EAAQ,WAApBI,CAAAA,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