import type { IHeading } from '../toc-protocol.js'; import { HeadingType } from '../toc-protocol.js'; /** * HTML heading */ export interface IHTMLHeading extends IHeading { /** * HTML id */ id?: string | null; } /** * Parse a HTML string for headings. * * ### Notes * The html string is not sanitized - use with caution * * @param html HTML string to parse * @param force Whether to ignore HTML headings with class jp-toc-ignore and tocSkip or not * @returns Extracted headings */ export declare function getHTMLHeadings(html: string, type?: HeadingType): IHTMLHeading[]; export declare const HTMLMimeType = "text/html"; /** * Returns whether a MIME type corresponds to either HTML. * * @param mime - MIME type string * @returns boolean indicating whether a provided MIME type corresponds to either HTML * * @example * const bool = isHTML('text/html'); * // returns true * * @example * const bool = isHTML('text/plain'); * // returns false */ export declare function isHTML(mime: string): boolean; //# sourceMappingURL=html.d.ts.map