import { EditorState } from './vendor/prosemirrorState.js';
import { EditorView } from '@tiptap/pm/view';
interface IBEditorEnterKeyboardEditor {
    commands: {
        createParagraphNear?: () => boolean;
        insertContent?: (value: string) => boolean;
        liftEmptyBlock?: () => boolean;
        newlineInCode?: () => boolean;
        setTextSelection?: (range: {
            from: number;
            to: number;
        }) => boolean;
        splitBlock?: () => boolean;
        unsetMark?: (typeOrName: 'link') => boolean;
    };
    isActive: (name: 'codeBlock' | 'listItem' | 'table') => boolean;
    state?: {
        schema: EditorState['schema'];
        selection: Pick<EditorState['selection'], '$from' | 'empty' | 'from' | 'to'>;
        tr: EditorState['tr'];
    } & Pick<EditorState, 'selection'>;
    view?: {
        dom: HTMLElement;
    } & Pick<EditorView, 'dispatch' | 'domAtPos' | 'focus' | 'posAtDOM'>;
}
interface IBEditorTabKeyboardEvent {
    altKey?: boolean;
    ctrlKey?: boolean;
    isComposing?: boolean;
    key: string;
    keyCode?: number;
    metaKey?: boolean;
    preventDefault: () => void;
    shiftKey: boolean;
}
type TBEditorEnterKeyboardEvent = IBEditorTabKeyboardEvent;
interface IBEditorBeforeTextInputEvent {
    data?: null | string;
    inputType?: string;
    isComposing?: boolean;
    preventDefault: () => void;
}
export declare function handleBEditorEnterKeyDown(editor: IBEditorEnterKeyboardEditor | null | undefined, event: TBEditorEnterKeyboardEvent): boolean;
export declare function syncBEditorBeforeTextInput(editor: IBEditorEnterKeyboardEditor | null | undefined): boolean;
export declare function handleBEditorTextInputKeyDown(editor: IBEditorEnterKeyboardEditor | null | undefined, event: TBEditorEnterKeyboardEvent): boolean;
export declare function handleBEditorBeforeTextInput(editor: IBEditorEnterKeyboardEditor | null | undefined, event: IBEditorBeforeTextInputEvent): boolean;
export declare function syncBEditorSelectionBeforeKeymap(editor: IBEditorEnterKeyboardEditor | null | undefined, event: IBEditorTabKeyboardEvent): void;
export {};
