export declare abstract class TexMathBase extends HTMLElement { private m_tex; private blockDisplay; private m_slot?; private m_display?; private m_number?; private m_container?; private static triggering_attributes; lc_number: string | Function | null; /** * Get the tex content of the element */ get tex(): string; /** * Set the text content and updates the display */ set tex(_tex: string); constructor(blockDisplay: boolean); connectedCallback(): void; /** * Update the equation display. * * Updates the display by parsing the tex content and rendering it, * it also updates the stored tex that can be queryed by `get tex()` * and the number if required. * * TODO: update the number if required */ render(): void; /** * Builds a peview of the equation. * * This funtion allows the [lc-ref](https://www.npmjs.com/package/lc-ref) package to create the equation preview on link hover. * * The preview will be rendered simply as another tex-math element with the same content. * * @param preview the element to fill with the preview */ lc_build_ref_preview(preview: HTMLElement): void; /** * updates the equation number, it also adds/removes the number if necessary */ private update_number; /** * this function does not actually add the number, but it schedules for it to be added when the enumeration is done */ private add_number; /** * This funciton removes the number display and the `lc_number` attribute so that the [lc-ref](https://www.npmjs.com/package/lc-ref) package * will not try to numerate this element. */ private remove_number; /** * This function renumerates the equations in the document by calling the [lc-ref](https://www.npmjs.com/package/lc-ref)'s `renumerate()` function. * If the lc_ref package is not loaded, this function does nothing. */ renumerate(): void; private static fix_indentation; } /** * Inline math element. * * @see TexMathBase */ export declare class IMath extends TexMathBase { constructor(); } /** * Math block element. * This element can be numbered. If any of the triggering attributes is present, the number will be shown. * * Triggering attributes: * - `number` * - `n` * - `id` * * @see TexMathBase */ export declare class TexMath extends TexMathBase { constructor(); } export declare class TexEditor extends HTMLElement { private editor?; constructor(); connectedCallback(): void; } export declare function setupStyles(element?: Element): void;