import { LAYOUT_OPTIONS } from '../../../index';
import { TableOfContentsItem } from './types';
export interface UseTocOptions {
    items: TableOfContentsItem[];
    navigationMode: 'anchor' | 'route';
    activeSectionId?: string;
    onItemClick?: (item: TableOfContentsItem) => void;
    onSidebarToggle?: (isOpen: boolean) => void;
}
export declare function useToc({ items, navigationMode, activeSectionId: externalActiveSection, onItemClick, onSidebarToggle, }: UseTocOptions): {
    layout: LAYOUT_OPTIONS;
    breakPoint: string;
    isSidebarOpen: boolean;
    setIsSidebarOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
    activeSection: string;
    openCategories: Set<string>;
    categoryRefs: import('react').RefObject<Record<string, HTMLDivElement | null>>;
    groupedItems: Record<string, TableOfContentsItem[]> | null;
    handleCategoryToggle: (category: string, categoryItems: TableOfContentsItem[]) => void;
    handleItemClick: (e: React.MouseEvent<HTMLAnchorElement>, item: TableOfContentsItem) => void;
    smallScreen: boolean;
    isMobile: boolean;
    isMacOS: boolean;
    isTahoe: boolean;
    isSonoma: boolean;
};
