import type { Node } from "@tiptap/pm/model";
import type { Editor } from "@tiptap/react";
interface UseMathDialogOptions {
    editorRef: React.RefObject<Editor | null>;
    disabledRef: React.MutableRefObject<boolean>;
}
export declare function useMathDialog({ editorRef, disabledRef, }: UseMathDialogOptions): {
    showMathDialog: boolean;
    mathDialogType: "inline" | "block";
    mathDialogInitialValue: string;
    handleMathConfirm: (latex: string) => void;
    handleMathCancel: () => void;
    openMathDialog: (type: "inline" | "block", initialValue: string, callback: (latex: string) => void) => void;
    handleInlineMathClick: (node: Node, pos: number) => void;
    handleBlockMathClick: (node: Node, pos: number) => void;
    handleMathDialogFromSlash: (type: "inline" | "block", initialValue: string, callback: (latex: string) => void) => void;
};
export {};
