/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import type { MenuRenderFn, MenuResolution } from './shared/LexicalMenu'; import type { JSX } from 'react'; import { CommandListenerPriority, NodeKey, TextNode } from 'lexical'; import { MenuOption } from './shared/LexicalMenu'; export type NodeMenuPluginProps = { onSelectOption: (option: TOption, textNodeContainingQuery: TextNode | null, closeMenu: () => void, matchingString: string) => void; options: Array; nodeKey: NodeKey | null; onClose?: () => void; onOpen?: (resolution: MenuResolution) => void; menuRenderFn: MenuRenderFn; anchorClassName?: string; commandPriority?: CommandListenerPriority; parent?: HTMLElement; }; export declare function LexicalNodeMenuPlugin({ options, nodeKey, onClose, onOpen, onSelectOption, menuRenderFn, anchorClassName, commandPriority, parent, }: NodeMenuPluginProps): JSX.Element | null; export { MenuOption, MenuRenderFn, MenuResolution };