import { Manifest } from '@prose-reader/shared'; import { ChapterInfo, FlatTocEntry, TocCandidatesBySpineHref, TocPathEntry } from './types'; type Toc = NonNullable["toc"]; export declare const stripAnchor: (value: string) => string; export declare const safeDecode: (value: string) => string; export declare const buildTocIndex: (toc: Toc, manifest: Manifest) => FlatTocEntry[]; export declare const buildTocCandidatesBySpineHref: ({ manifest, tocIndex, }: { manifest: Manifest; tocIndex: FlatTocEntry[]; }) => TocCandidatesBySpineHref; export declare const isPossibleTocItemCandidateForHref: (hrefWithoutAnchor: string, tocItemHrefWithoutAnchor: string) => boolean; export declare const buildChapterInfoFromChain: (chain: TocPathEntry[]) => ChapterInfo | undefined; export {};