export declare const DEFAULT_MATHJAX_URL = "https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-svg.js"; interface MathJaxGlobal { tex2svgPromise?: (tex: string, options?: Record) => Promise; tex2chtmlPromise?: (tex: string, options?: Record) => Promise; svgStylesheet?: () => HTMLStyleElement; chtmlStylesheet?: () => HTMLStyleElement; startup?: { promise?: Promise; typeset?: boolean; }; } /** Load MathJax once per URL, reusing whatever the host page already has. */ export declare function loadMathJax(url?: string): Promise; /** Render one TeX expression to a detached node ready to be adopted into a * shadow root. Falls back to CHTML when the page's MathJax has no SVG output. */ export declare function renderTex(mathJax: MathJaxGlobal, tex: string, display: boolean): Promise; /** * MathJax keeps its rules in a stylesheet it appends to the main document, * which never reaches shadow DOM. Copy the current version in — it grows as * new constructs are typeset, so it is re-synced on every render. */ export declare function syncMathJaxStyles(root: ShadowRoot, mathJax: MathJaxGlobal): void; export {};