import { Chunk } from "../types.js"; //#region src/handshakes/base.d.ts type EmbedFunction = (texts: string[]) => Promise; interface EmbeddingModel { embed(texts: string[]): Promise; } interface HandshakeSearchResult { id: string; score: number; text: string; startIndex: number; endIndex: number; tokenCount: number; metadata?: Record; } interface BaseHandshakeOptions { embeddings: EmbedFunction | EmbeddingModel; idPrefix?: string; } declare abstract class BaseHandshake { protected readonly embed: EmbedFunction; protected readonly idPrefix: string; constructor(options: BaseHandshakeOptions); abstract write(chunks: Chunk | Chunk[]): Promise; abstract search(query: string, options?: { limit?: number; }): Promise; abstract searchByVector(embedding: number[], options?: { limit?: number; }): Promise; abstract count(): Promise; protected generateId(chunk: Chunk): string; protected normalizeChunks(chunks: Chunk | Chunk[]): Chunk[]; } //#endregion export { BaseHandshake, BaseHandshakeOptions, EmbedFunction, EmbeddingModel, HandshakeSearchResult }; //# sourceMappingURL=base.d.ts.map