import type { Root } from 'mdast';
export interface TocItem {
    id: string;
    text: string;
    depth: number;
    index: number;
}
export interface PageMeta {
    toc: TocItem[];
    title: string;
    headingTitle: string;
    frontmatter?: Record<string, unknown>;
}
export declare const parseToc: (tree: Root, allDepths?: boolean) => {
    title: string;
    toc: TocItem[];
};
