import type { FC, ReactElement } from 'react'; import type { CommonProps, DraftContent, EditorProps, Helpers, LegacyEditorPluginConfig, LinkPreviewData, MegaToolbarComponent, SEOSettings, ViewerPlugin } from 'ricos-types'; export interface RichContentEditorProps { helpers?: Helpers; config: LegacyEditorPluginConfig; } export interface RicosProps extends CommonProps { _rcProps?: RichContentEditorProps; } type RichContentViewerProps = RicosProps & { addAnchors?: boolean | string; }; export interface RicosEditorProps extends RicosProps, EditorProps { children?: (props: { Editor: FC; Toolbar: MegaToolbarComponent; }) => ReactElement; htmlAttributes?: { autoCapitalize?: string; spellCheck?: boolean; autoComplete?: string; autoCorrect?: string; tabIndex?: number; }; } export interface RicosViewerProps extends RichContentViewerProps { children?: ReactElement; plugins?: ViewerPlugin[]; seoSettings?: boolean | SEOSettings; textSelectionToolbar?: boolean; linkPreviewPopoverFetchData?: (url: string) => Promise; content?: DraftContent; } export interface ContentStateGetterArgs { shouldRemoveErrorBlocks?: boolean; } export type ContentStateGetter = (args?: ContentStateGetterArgs) => DraftContent; export {}; //# sourceMappingURL=RicosTypes.d.ts.map