export interface TocItem { id: string; label: string; depth?: number; } type TocVariant = 'rail' | 'soft' | 'plain'; type TocSize = 'sm' | 'md'; interface TableOfContentsProps { items?: TocItem[]; activeId?: string; title?: string; variant?: TocVariant; size?: TocSize; /** Show 01, 02… for top-level items */ numbered?: boolean; /** Keep the title pinned while the link list scrolls */ stickyTitle?: boolean; /** Enable IntersectionObserver scroll-spy */ scrollSpy?: boolean; /** CSS selector for scroll container (default: viewport) */ scrollRoot?: string; class?: string; onchange?: (id: string) => void; } declare const TableOfContents: import("svelte").Component; type TableOfContents = ReturnType; export default TableOfContents;