import { FC, RefObject } from 'react'; import { Attrs } from '@remirror/core'; import { ActiveTagData, ActiveUserData, MatchName, MentionGetterParams, SetExitTriggeredInternallyParams, TwitterEditorProps } from '../twitter-types'; import { EmojiPickerProps } from './emoji-picker'; interface TwitterEditorComponentProps extends Pick, MentionGetterParams, SetExitTriggeredInternallyParams { /** * Elements to be ignored when clicking outside of the emoji pop. * When focused these elements will not cause the emoji picker to close. */ ignoredElements: HTMLElement[]; /** * Callback for when the emoji picker loses focus. */ onBlurEmojiPicker: () => void; /** * Callback for when the smiley button is clicked. */ onClickEmojiSmiley: () => void; /** * Whether the emoji picker is currently active (and should be displayed) */ emojiPickerActive: boolean; /** * The ref for the toggle emoji button is passed through so that it can be used * in the parent component. */ toggleEmojiRef: RefObject; /** * The current matching users. */ users: ActiveUserData[]; /** * The current matching tags. */ tags: ActiveTagData[]; /** * The action triggered when the emoji is selected. */ onSelectEmoji(method: (attrs: Attrs) => void): EmojiPickerProps['onSelection']; /** * The currently active matcher */ activeMatcher: MatchName | undefined; /** * Whether or not suggestions have been hidden by pressing the escape key */ hideSuggestions: boolean; } /** * This is the internal editor component which relies on being wrapped within the remirror context. * * It renders suggestions, the editor, emoji picker and more to com. */ export declare const TwitterEditorComponent: FC; export {}; //# sourceMappingURL=editor.d.ts.map