import { Root } from 'mdast';
export type TocInlineNode = {
    type: 'text';
    value: string;
} | {
    type: 'inlineCode';
    value: string;
} | {
    type: 'strong';
    children: TocInlineNode[];
} | {
    type: 'emphasis';
    children: TocInlineNode[];
} | {
    type: 'delete';
    children: TocInlineNode[];
} | {
    type: 'link';
    url?: string;
    children: TocInlineNode[];
};
export interface TocItem {
    title: string;
    url: string;
    depth: number;
    richTitle?: TocInlineNode[];
}
export declare function rehypeToc(options?: {
    maxLevel?: number;
}): (tree: Root) => void;
//# sourceMappingURL=rehype-toc.d.ts.map