import type { Document } from '../model/index.js'; export interface AnchorMap { fragment(id: string): string | undefined; htmlId(id: string): string | undefined; } export declare function resolveAnchors(doc: Document): AnchorMap; /** * GFM-style heading slugs: full-Unicode lowercase, spaces become hyphens, * and everything except word-forming characters (letters, numbers, marks, * connector punctuation) and hyphens drops. An empty result becomes * `section` so the anchor stays linkable. */ export declare function gfmSlug(text: string): string;