import type { Editor } from "@tiptap/react"; import type { TextMenuConfig } from "../config"; interface TextMenuStates { isBold: boolean; isItalic: boolean; isUnderline: boolean; isStrike: boolean; isQuote: boolean; isOrderedList: boolean; isUnorderedList: boolean; isAlignLeft: boolean; isAlignCenter: boolean; isAlignRight: boolean; isAlignJustify: boolean; isLink: boolean; } export declare const useTextmenuCommands: (editor: Editor, config?: TextMenuConfig, states?: TextMenuStates) => { onSetFontSize: (fontSize: number | null) => boolean; onBold: () => boolean; onItalic: () => boolean; onStrike: () => boolean; onUnderline: () => boolean; onAlignLeft: () => boolean; onAlignCenter: () => boolean; onAlignRight: () => boolean; onAlignJustify: () => boolean; onLink: (url: string, inNewTab?: boolean) => boolean; onQuote: () => void; onOrderedList: () => void; onUnorderedList: () => void; onSetColor: (color: string) => boolean; onUnsetColor: () => boolean; }; export {};