import { Book, Section, TOCItem } from './types'; export interface SectionIndexLookup { readonly byId: ReadonlyMap; readonly byPath: ReadonlyMap; } export declare function flattenTOC(items: readonly TOCItem[] | null | undefined): TOCItem[]; export declare function normalizeTOCHref(href?: string | null): string; export declare function normalizeNavigationHref(href?: string | null): string; export declare function normalizeBookPath(href?: string | null): string; export declare function createSectionIndexLookup(book: Pick): SectionIndexLookup; export declare function findSectionIndex(lookup: SectionIndexLookup, id: string | number): number; export declare function resolveTOCSectionIndex(book: Pick, href: string, sectionLookup?: SectionIndexLookup): number; export declare function findTOCItemForSection(book: Pick, sectionIndex: number, section?: Section | undefined, sectionLookup?: SectionIndexLookup): TOCItem | null; export declare function isSameTOCItem(item: TOCItem, activeItem: TOCItem | null): boolean; //# sourceMappingURL=toc.d.ts.map