import { Manifest } from './opf'; export declare function parseToc(text: string, getItemId: Manifest['getItemId']): Toc | undefined; export interface TocItem { name: string; sectionId: string; nodeId: string; path: string; playOrder: number | string; children?: TocItem[]; } export declare class Toc { tree: TocItem[]; constructor(tree: TocItem[]); private visitAll; find(predicate: (item: TocItem) => unknown): any; getBySectionId(id: string): any; }