/** * Options for chunking documents */ export interface ChunkOptions { /** Maximum tokens per chunk */ maxTokens: number; /** Number of tokens to overlap between chunks */ overlapTokens: number; } /** * A single chunk of a document */ export interface DocumentChunk { /** Document identifier */ documentId: string; /** Index of this chunk (0-based) */ chunkIndex: number; /** Text content of the chunk */ text: string; /** Estimated token count */ tokens: number; /** Starting line number in original document (1-indexed) */ startLine: number; /** Ending line number in original document (1-indexed) */ endLine: number; /** Contextual information (e.g., header name, function name) */ context?: string; } /** * Result of chunking a document */ export interface ChunkedDocument { /** Document identifier */ documentId: string; /** Array of chunks */ chunks: DocumentChunk[]; /** Total number of chunks */ totalChunks: number; /** Total estimated tokens across all chunks */ totalTokens: number; } //# sourceMappingURL=types.d.ts.map