import type { Editor } from '@tiptap/core'; export declare const useCommands: (editor: Editor) => { onBold: () => boolean; onItalic: () => boolean; onUnderline: () => boolean; onStrike: () => boolean; onCode: () => boolean; onCodeBlock: () => boolean; onLink: (state: { url: string; inNewTab: boolean; rel: string[]; }) => boolean; onSetColor: (color: string) => boolean | undefined; onSetBackgroundColor: (color: string) => boolean | undefined; onSetSearchAndReplace: () => void; };