import { Chunk } from "../types.js"; import { BaseHandshake, BaseHandshakeOptions, HandshakeSearchResult } from "./base.js"; //#region src/handshakes/mongodb.d.ts interface MongoDBHandshakeOptions extends BaseHandshakeOptions { /** Pre-initialized MongoDB collection. */ collection: MongoCollection; /** Name of the Atlas vector search index. (default: 'vector_index') */ indexName?: string; } interface MongoCollection { insertMany(docs: Array>): Promise<{ insertedCount: number; }>; bulkWrite(ops: Array>): Promise; aggregate(pipeline: Array>): { toArray(): Promise>>; }; countDocuments(): Promise; } declare class MongoDBHandshake extends BaseHandshake { private collection; private indexName; constructor(options: MongoDBHandshakeOptions); write(chunks: Chunk | Chunk[]): Promise; search(query: string, options?: { limit?: number; }): Promise; searchByVector(embedding: number[], options?: { limit?: number; }): Promise; count(): Promise; } //#endregion export { MongoCollection, MongoDBHandshake, MongoDBHandshakeOptions }; //# sourceMappingURL=mongodb.d.ts.map