/**
 * @typedef {import('mdast').Nodes} Nodes
 * @typedef {import('mdast').RootContent} RootContent
 */
import type { Root } from 'mdast';
/**
 * Transform a string into an applicable expression.
 *
 * @param {string} value
 * @returns {RegExp}
 */
export declare function toExpression(value: string): RegExp;
export interface HeadOptions {
    /**
     * Whether show chapter number.(default: `true`).
     * @type {boolean}
     */
    chapterNumber?: boolean;
    /**
     * Whether apply defaults of heading id.(default: `true`)
     * @type {boolean}
     */
    defaults?: boolean;
    /**
     * The heading regex expression of table of contents.
     * @type {string}
     */
    toc?: string;
}
/**
 * The remark plugin for supporting custom id and default id
 *
 * @param {HeadOptions} [options]
 *   Configuration (optional).
 * @returns
 *   Transform.
 */
export declare function remarkHeadingId(options?: HeadOptions): (tree: Root) => void;
