import React from 'react'; import type { BaseProps } from '@toptal/picasso-shared'; import type { ASTType } from '../RichText'; import type { ChangeHandler, EditorPlugin, TextLengthChangeHandler } from './types'; import type { CustomEmojiGroup } from '../plugins/EmojiPlugin'; export declare type Props = BaseProps & { /** Indicates that an element is to be focused on page load */ autoFocus?: boolean; /** Default value in [HAST](https://github.com/syntax-tree/hast) format */ defaultValue?: ASTType; /** * This Boolean attribute indicates that the user cannot interact with the control. */ disabled?: boolean; /** unique identifier */ id: string; /** Name attribute of the input element */ /** * Callback on text change */ onChange?: ChangeHandler; /** * Callback for blur event */ onBlur?: () => void; /** * Callback for focus event */ onFocus?: () => void; /** * Callback on text length change */ onTextLengthChange: TextLengthChangeHandler; /** The placeholder attribute specifies a short hint that describes the expected value of a text editor. */ placeholder?: string; testIds?: { editor?: string; headerSelect?: string; boldButton?: string; italicButton?: string; unorderedListButton?: string; orderedListButton?: string; }; customEmojis?: CustomEmojiGroup[]; /** List of plugins to enable on the editor */ plugins?: EditorPlugin[]; hiddenInputId?: string; }; declare const LexicalEditor: React.ForwardRefExoticComponent void) | undefined; /** * Callback for focus event */ onFocus?: (() => void) | undefined; /** * Callback on text length change */ onTextLengthChange: TextLengthChangeHandler; /** The placeholder attribute specifies a short hint that describes the expected value of a text editor. */ placeholder?: string | undefined; testIds?: { editor?: string | undefined; headerSelect?: string | undefined; boldButton?: string | undefined; italicButton?: string | undefined; unorderedListButton?: string | undefined; orderedListButton?: string | undefined; } | undefined; customEmojis?: CustomEmojiGroup[] | undefined; /** List of plugins to enable on the editor */ plugins?: EditorPlugin[] | undefined; hiddenInputId?: string | undefined; } & React.RefAttributes>; export default LexicalEditor; //# sourceMappingURL=LexicalEditor.d.ts.map