import type Token from 'markdown-it/lib/token';
import type StateCore from 'markdown-it/lib/rules_core/state_core';
import type { Heading } from '@diplodoc/transform/lib/typings';
export declare function getHrefTokenAttr(token: Token): string;
type LinkWalker = (link: Token, href: string, tokens: Token[], index: number) => void;
export declare function walkLinks(state: StateCore, handler: LinkWalker): void;
export declare function getHref(href: string): string;
export declare function mapHeadings(headings: Heading[] | undefined): {
    title: string;
    href: string;
    level: number;
    items?: Heading[] | undefined;
}[] | undefined;
export {};
