import type { EmbeddedChunk, EmbeddingModel, IndexedDocument, SourceDocument } from '../types.js'; import type { EmbedRequest, EmbedResponse } from '../providers/zeroentropy.js'; import { type ChunkerOptions } from '../chunkers/text-boundaries.js'; export type DocumentEmbedder = { embed(request: EmbedRequest): Promise; }; export type IndexDocumentOptions = { document: SourceDocument; chunkerOptions: ChunkerOptions; chunkerVersion: number; embeddingModel: EmbeddingModel; embeddingDimensions: number; embedder: DocumentEmbedder; indexedAt?: Date; }; export type IndexDocumentResult = { document: IndexedDocument; chunks: readonly EmbeddedChunk[]; }; export declare function indexDocument(options: IndexDocumentOptions): Promise;