import React, { ChangeEvent, SyntheticEvent } from 'react'; import { EditorState } from 'prosemirror-state'; import { Schema, Node } from 'prosemirror-model'; import { Transform } from 'prosemirror-transform'; import { UICommand } from '@modusoperandi/licit-doc-attrs-step'; export declare class CustomMenuUI extends React.PureComponent { _popUp: any; _stylePopup: any; _styleName: any; _menuItemHeight: number; _id: string; _menuRef: React.RefObject; _navItems: Array<{ command: UICommand; label: string; }>; _staticItems: Array<{ command: UICommand; label: string; }>; _appliedIndex: number; _lastPointerX: number | null; _lastPointerY: number | null; state: { expanded: boolean; selectedIndex: number; searchTerm: string; style: { display: string; top: string; left: string; }; }; render(): React.JSX.Element; componentDidMount(): void; componentWillUnmount(): void; _onMenuMouseOver: (e: MouseEvent) => void; _scrollAppliedStyleIntoView(): void; scrollSelectedIntoView(): void; _onItemMouseEnter: (index: number) => void; _onMenuKeyDown: (e: React.KeyboardEvent) => void; isStyleMatch(label: string, searchTerm: string): boolean; _onSearchChange: (event: ChangeEvent) => void; _onSearchClick: (event: SyntheticEvent) => void; _onSearchContextMenu: (event: SyntheticEvent) => void; _onSearchKeyDown: (event: SyntheticEvent) => void; isAllowedNode(node: Node): boolean; _onUIEnter: (command: UICommand, event: SyntheticEvent) => void; _execute: (command: UICommand, e: SyntheticEvent) => void; showSubMenu(command: UICommand, event: SyntheticEvent): void; removeCustomStyleName(editorState: any, removedStyleName: any, dispatch: any): boolean; removeTextAlignAndLineSpacing(tr: Transform, schema: Schema): Transform; showStyleWindow(command: any, _event: SyntheticEvent, mode: any): void; renameStyleInDocument(state: EditorState, tr: Transform, oldStyleName: any, styleName: any): Transform; getTheSelectedCustomStyle(editorState: any): string; }