import type { DoclingResult as ExternalDoclingResult } from "../external/docling.js"; import type { ChunkPlanEndpoint, DoclingResult, SourceChunk, TreeSnapshot } from "./source-service.js"; export interface AtomMetadata { index: number; startByte: number; endByte: number; byteLength: number; startLine: number; endLine: number; } export interface FileDoclingResult { extractedPath: string; converter?: { name: string; version?: string; }; attachments: Array<{ path: string; absolutePath: string; byteLength: number; digest: string; }>; } export interface ExtractionFileBoundary { startByte: number; endByte: number; preserveBlankRuns: boolean; } export declare function planFileAtoms(path: string): Promise; export declare function chunkEndpointNumber(endpoint: number | ChunkPlanEndpoint): number | undefined; export declare function normalizeMarkdownFile(source: string, target: string, collapseBlankRuns?: boolean, fileBoundaries?: readonly ExtractionFileBoundary[]): Promise; export declare function atomizeExtraction(extracted: string | Uint8Array): Array; export declare function validateChunkEndpoints(extracted: string | Uint8Array, proposed?: Array): SourceChunk[]; export declare function validateFileEndpoints(path: string, proposed?: readonly (number | ChunkPlanEndpoint)[]): Promise<{ chunks: AtomMetadata[]; }>; export declare function validateFileEndpointsSync(path: string, proposed?: readonly (number | ChunkPlanEndpoint)[]): { chunks: AtomMetadata[]; }; export declare function writeFileChunks(path: string, root: string, chunks: readonly AtomMetadata[]): Promise>; export declare function normalizeDoclingResult(result: DoclingResult | ExternalDoclingResult): Promise; export declare function assertNoEmbeddedDoclingImages(extracted: Uint8Array): void; export declare function rewriteDoclingAttachmentReferences(extracted: Uint8Array, attachmentPaths: readonly string[]): Buffer; export declare function copyDoclingExtraction(source: string, target: string, attachmentPaths?: readonly string[]): Promise; export declare function writeNativeExtraction(snapshot: TreeSnapshot, target: string, preserveBlankRuns?: ReadonlySet): Promise; //# sourceMappingURL=source-chunks.d.ts.map