export type TocItem = { title: string; url: string; items?: TocItem[]; }; export type TableOfContents = { items?: TocItem[]; }; export declare function useToc(getItemIds: () => string[]): { readonly activeId: string | null; readonly markerTopStyle: string; readonly markerHeightStyle: string; isActive: (item: TocItem) => boolean; isLastItem: (item: TocItem) => boolean; }; export type TocState = ReturnType;