export declare const MARKDOWN_HEADING_SELECTOR = "h1, h2, h3"; export declare const MARKDOWN_HEADING_ID_PREFIX = "toruk-artifact-heading"; export declare const SCROLL_SPY_OFFSET_PX = 24; export declare const HEADING_SCROLL_MARGIN_PX = 16; export declare const SCROLL_BOTTOM_TOLERANCE_PX = 24; export declare const REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)"; export declare const USER_SCROLL_INTENT_EVENTS: readonly ["wheel", "touchmove", "keydown", "pointerdown"]; export type TocItem = { id: string; text: string; level: number; }; export declare function findScrollContainer(element: Element | null | undefined): HTMLElement | null; export declare function getScrollViewportHeight(container: HTMLElement | null, view?: Window): number; export declare function prepareHeadings(root: Element | null | undefined, prefix: string): HTMLElement[]; export declare function toTocItems(headings: readonly HTMLElement[]): TocItem[]; export declare function sameTocItems(a: readonly TocItem[], b: readonly TocItem[]): boolean; export declare function isScrolledToEnd(container: HTMLElement | null, doc?: Document): boolean; export declare function resolveActiveHeadingId(headings: readonly HTMLElement[], container: HTMLElement | null, doc?: Document): string | null; export declare const tocIndentRem: (level: number) => number; export declare function prefersReducedMotion(view?: Window): boolean; export declare function scrollHeadingIntoView(heading: HTMLElement, view?: Window): void;