import type { FlatBlock } from "@tooee/renderers"; import type { Tokens } from "marked"; import type { FoldRange } from "./fold-model.js"; /** The Marked heading token of a flattened block, or `null` when the block is not a heading. */ export declare const headingToken: (block: FlatBlock) => Tokens.Heading | null; /** * Heading fold ranges over flattened Markdown blocks. A heading at depth `d` * folds every following block up to the next heading of depth `d` or less, or * the end of the document. A heading with no body yields no range. Keys are * the heading's block index, the same key the Markdown row adapter uses. */ export declare const markdownHeadingFoldRanges: (blocks: readonly FlatBlock[]) => FoldRange[]; //# sourceMappingURL=markdown-heading-folds.d.ts.map