import { PureComponent } from 'react'; import { MatchName, TwitterEditorProps } from '../twitter-types'; interface State { activeMatcher: MatchName | undefined; activeIndex: number; emojiPickerActive: boolean; hideSuggestions: boolean; } export declare class TwitterEditor extends PureComponent { static defaultProps: { theme: { colors: {}; font: {}; }; emojiSet: string; }; readonly state: State; /** * The ref for the element that toggles the emoji picker display. */ private toggleEmojiRef; /** * The mention information */ private mention; /** * This keeps track of when an exit was triggered by an internal command. * For example when the enter key is pressed to select a suggestion this should be set to * true so that the subsequent `onExit` call can be ignored. */ private exitTriggeredInternally; /** * Create the arrow bindings. */ private createArrowBindings; /** * These are the keyBindings for mentions extension. This allows for overriding */ private keyBindings; /** * The list of users that match the current query */ private readonly users; /** * The list of tags which match the current query */ private readonly tags; /** * A simple getter for the editor theme. */ private readonly theme; /** * The props which are passed down into the internal remirror editor. */ private readonly remirrorProps; /** * Retrieves the mention property and can be passed down into child components. * * This is defined here and now as a part of state because we don't actually need to rerender the component * when the query or suggestion state changes. We only need this in children components when clicking on the * suggestion so that */ private getMention; /** * The is the callback for when a suggestion is changed. */ private onChange; /** * Called when the none of our configured matchers match */ private onExit; /** * Called when an emoji is selected in order to insert the emoji at the current cursor position. */ private onSelectEmoji; /** * Called when the smiley emoji is clicked ans toggles the activity status of the emoji picker. */ private onClickEmojiSmiley; /** * Called when the emoji picker loses focus so that it can hidden. */ private onBlurEmojiPicker; /** * Identifies the next exit as one which can be ignored. */ private setExitTriggeredInternally; render(): JSX.Element; } export {}; //# sourceMappingURL=twitter.editor.d.ts.map