export type PreparedMathMarkdown = { /** Markdown with every math span in `$$` form; the input itself when there is none. */ text: string; /** Whether the text contains math the renderer should typeset. */ hasMath: boolean; }; /** Cheap check before the full scan: no `$`, `\(` or `\[` means no math. */ export declare function mayContainMath(text: string): boolean; /** Rewrite the math in `text` to `$$` form and report whether there is any. */ export declare function prepareMathMarkdown(text: string): PreparedMathMarkdown;