import { type EmojiShortcode } from './emojiShortcode.js'; /** The emoji for the `:shortcode` typed before the caret, and their keys; the caller owns the * input and spreads `inputProps` on it while the menu is open. `caret` is null while text is * selected. */ export declare function useEmojiMenu(input: string, caret: number | null, enabled: boolean, insert: (text: string, caret: number) => void): { open: boolean; matches: EmojiShortcode[]; list: { active: number; setActive: import("react").Dispatch>; handleKey: (event: KeyboardEvent | import("react").KeyboardEvent) => boolean; listId: string; hostProps: { 'aria-autocomplete': 'list'; 'aria-controls': string | undefined; 'aria-activedescendant': string | undefined; }; listProps: { id: string; role: 'listbox'; }; optionProps: (index: number) => { id: string; role: 'option'; tabIndex: number; 'aria-selected': boolean; 'aria-disabled': true | undefined; 'data-highlighted': true | undefined; 'data-disabled': true | undefined; onMouseDown: (event: { preventDefault: () => void; }) => void; onMouseMove: () => void; onClick: () => void; }; }; /** True when the key belonged to the menu. */ handleKey: (event: KeyboardEvent | import("react").KeyboardEvent) => boolean; inputProps: {}; }; export declare function EmojiMenu({ label, menu, }: { label: string; menu: ReturnType; }): import("react").JSX.Element;