import { MenuRenderFn, MenuResolution, MenuTextMatch, TriggerFn, MenuOption } from "./shared/LexicalMenu"; import { CommandListenerPriority, LexicalCommand, TextNode } from "lexical"; import { JSX } from "solid-js"; export type QueryMatch = { leadOffset: number; matchingString: string; replaceableString: string; }; export type Resolution = { match: QueryMatch; getRect: () => DOMRect; }; export declare const PUNCTUATION = "\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;"; export declare function getScrollParent(element: HTMLElement, includeHidden: boolean): HTMLElement | HTMLBodyElement; export { useDynamicPositioning } from "./shared/LexicalMenu"; export declare const SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND: LexicalCommand<{ index: number; option: MenuOption; }>; export declare function useBasicTypeaheadTriggerMatch(trigger: string, { minLength, maxLength }: { minLength?: number; maxLength?: number; }): TriggerFn; export type TypeaheadMenuPluginProps = { onQueryChange: (matchingString: string | null) => void; onSelectOption: (option: TOption, textNodeContainingQuery: TextNode | null, closeMenu: () => void, matchingString: string) => void; options: Array; menuRenderFn: MenuRenderFn; triggerFn: TriggerFn; onOpen?: (resolution: MenuResolution) => void; onClose?: () => void; anchorClassName?: string; commandPriority?: CommandListenerPriority; parent?: HTMLElement; preselectFirstItem?: boolean; }; export declare function LexicalTypeaheadMenuPlugin(props: TypeaheadMenuPluginProps): JSX.Element | null; export { MenuOption, MenuRenderFn, MenuResolution, MenuTextMatch, TriggerFn };