import type { InlineSpan } from './types.js'; /** * Build a per-character map from plain text to absolute source offsets. * Greedy matches each plain char against the raw source (delimited by * [blockSrcStart, blockSrcEnd)), skipping markdown markers and treating * newlines/tabs as spaces for paragraph line joins. Exported so inline * snippets (`inlineSnippet.ts`) share the exact same alignment rules. */ export declare function computeSourceMap(markdown: string, blockSrcStart: number, blockSrcEnd: number, plainText: string): number[]; /** * Build normalized text, spans, and sourceMap for a block. The plain text is * whitespace-normalized to match pretext's internal normalization so that the * per-character `sourceMap` aligns with rendered line segments. */ export declare function buildBlockMapping(markdown: string, blockSrcStart: number, blockSrcEnd: number, rawSpans: InlineSpan[]): { text: string; spans: InlineSpan[]; sourceMap: number[]; }; //# sourceMappingURL=sourceMapping.d.ts.map