declare const Base: typeof HTMLElement; /** * The custom element class. It renders its text content as LaTeX into its shadow DOM, and renders * again whenever the content or one of its attributes changes. * * Register it with * `defineLaTeXJSComponent()` * or with * `customElements.define("latex-js", LaTeXJSComponent)` * * Attributes: * - `baseURL`: where to load css/, fonts/ and js/ from, may be relative to the page * (default: the location of the latex.js module) * - `hyphenate`: "false" disables hyphenation * - `macros`: URL of a module with CustomMacros as default export * - `stylesheet`: URL of an additional stylesheet */ export declare class LaTeXJSComponent extends Base { #private; constructor(); /** * Custom component lifecycle callback. * Called each time the element is added to the document. */ connectedCallback(): void; /** * Custom component lifecycle callback. * Called each time the element is removed from the document. */ disconnectedCallback(): void; static observedAttributes: string[]; /** * Custom component lifecycle callback. * Called when attributes are changed, added, removed, or replaced. */ attributeChangedCallback(): void; } /** * Registers LaTeXJSComponent as custom element `name` (default: "latex-js"). * * Does nothing if that element is already defined (e.g. with hot module reloading) * or outside of the browser. */ export declare function defineLaTeXJSComponent(name?: string): void; export {};