import type { CustomComponents, IndexableElements, RMDXModule } from '../../types';
import type { Root } from 'hast';
import type { Transformer } from 'unified';
interface Options {
    components?: CustomComponents;
}
export declare const rehypeToc: ({ components }: Options) => Transformer<Root, Root>;
export declare const tocHastToMdx: (toc: IndexableElements[] | undefined, components: Record<string, RMDXModule["toc"]>) => string;
export {};
