import { ImageExtensionFnProps, RichTextEditorFeatures } from "./RichTextEditor.types.js"; import { Variants } from "../../atoms/types/variants.js"; import { FC, ReactNode } from "react"; import { Extensions } from "@tiptap/react"; //#region src/molecules/RichTextEditor/RichTextEditor.d.ts interface RichTextEditorProps extends ImageExtensionFnProps { value: string | null | undefined; onChange: (value: string) => void; placeholder?: string; features?: RichTextEditorFeatures[]; extendFeatures?: RichTextEditorFeatures[]; removeFeatures?: RichTextEditorFeatures[]; padding?: 'sm' | 'md' | 'lg' | 'none'; maxHeight?: string; minHeight?: string; lightBackground?: boolean; border?: boolean; /** * @deprecated - Use new 'variant' prop instead */ highlighted?: boolean; variant?: Variants; label?: string; meta?: string; helperText?: string; footer?: ReactNode; extensions?: Extensions; } /** * * @param value - Rich text content * @param onChange - handler for when the content changes * @param onImageUpload - handler for when an image is uploaded * @param onImageRead - handler used when loading images, expects b64 string to be returned * @param onImageRemove - called when an image removed, use when deleting images instantly * @param onRemovedImagesChange - called when the list of removed images change * @param placeholder - placeholder text if there is no content * @param features - which features should be enabled * @param extendFeatures - additional features to be added * @param removeFeatures - features to exclude from default features * @param padding - padding in the editor * @param maxHeight - maxHeight of the text box * @param minHeight - minHeight of the text box * @param lightBackground - if it should have a different BG color * @param border - if it should have a border * @param variant - field variants - for example 'error' * @param highlighted - if it should have a highlighted border * @param label - Label text at top left * @param meta - Meta text at top right * @param helperText - Helper text bottom left * @param footer - Custom footer content to display on bottom of editor * @param extensions - Extensions for the editor */ declare const RichTextEditor: FC; //#endregion export { RichTextEditor, RichTextEditorProps };