import type { Node } from "prosemirror-model"; import type { JSONValue } from "@fiduswriter/document"; import { Dialog } from "fwtoolkit"; import type { Editor, EditorImageDB } from "../types.js"; interface MathfieldElementInstance extends HTMLElement { value: string; getValue(): string; select(): void; } export declare class FigureDialog { editor: Editor; imageDB: EditorImageDB; userImageDB: EditorImageDB; imgId: number | false; imgDb: "document" | "user" | false; copyright: Record | false; insideFigure: boolean; figureNode: Node | false; contentNode: Node | false; caption: boolean; category: string; aligned: string; width: string; equation: string; node: Node | null; submitMessage: string; dialog: Dialog | false; mathliveDOM: HTMLElement; nonMathElements: HTMLElement[]; mathField: MathfieldElementInstance | false; constructor(editor: Editor); layoutMathEditor(): void; showPlaceHolder(): void; hidePlaceHolder(): void; showHideNonMathElements(): void; selectImage(): void; layoutImagePreview(): Promise; submitForm(): Promise; findFigure(state: { selection: { node?: Node; $head: { depth: number; node(d: number): Node; }; }; }): Node | null; init(): boolean; } export {}; //# sourceMappingURL=figure.d.ts.map