import { Chunk } from "../types.js"; import { BaseHandshake, BaseHandshakeOptions, HandshakeSearchResult } from "./base.js"; //#region src/handshakes/weaviate.d.ts interface WeaviateHandshakeOptions extends BaseHandshakeOptions { /** Pre-initialized Weaviate collection/class accessor. */ collection: WeaviateCollection; } interface WeaviateCollection { data: { insertMany(objects: Array<{ properties: Record; vectors: number[]; }>): Promise<{ uuids: string[]; }>; }; query: { nearVector(vector: number[], opts?: { limit?: number; returnProperties?: string[]; includeVector?: boolean; }): Promise<{ objects: Array<{ uuid: string; properties: Record; metadata?: { distance?: number; certainty?: number; }; }>; }>; }; aggregate: { overAll(): Promise<{ totalCount: number; }>; }; } declare class WeaviateHandshake extends BaseHandshake { private collection; constructor(options: WeaviateHandshakeOptions); write(chunks: Chunk | Chunk[]): Promise; search(query: string, options?: { limit?: number; }): Promise; searchByVector(embedding: number[], options?: { limit?: number; }): Promise; count(): Promise; } //#endregion export { WeaviateCollection, WeaviateHandshake, WeaviateHandshakeOptions }; //# sourceMappingURL=weaviate.d.ts.map