import type { Token, TokenTree } from '../types.js'; /** * Maps a 0-based offset into `tagToken.text` to an absolute document line and * column. Only line 1 of the span inherits `startColumn` as its column origin, * because every later line starts at column 1 of the real document. * `offsetToLineColumn` (core/line-endings.ts) is the shared CRLF/CR/LF-aware * mapper, so this file counts lines the same way the tokenizer does. * * Exported so a rule holding a span-relative offset but no synthesized child * token to borrow a position from can reuse this instead of re-deriving the * same math. */ export declare function offsetToPosition(tagToken: Token, offset: number): { line: number; column: number; }; /** * Re-tokenizes every `markdocTag` token's own text via `parseMarkdocSpan` and * appends the resulting children -- open/close markers, tag name, primary value, * attributes (each wrapping a name/value pair), and class/id shortcuts -- both * under the tag token itself in source order and into `tree.flat`, which is * appended to rather than globally re-sorted (the same convention * `reparseHtmlFlow` follows). Only ever called behind `ParseOptions.markdoc`, * and flag-off parses produce no `markdocTag` tokens at all, so flag-off output * is untouched. */ export declare function structureMarkdocTags(tree: TokenTree): void; //# sourceMappingURL=structure.d.ts.map