export type RichTextTool = 'bold' | 'italic' | 'underline' | 'strike' | 'h1' | 'h2' | 'h3' | 'p' | 'ul' | 'ol' | 'quote' | 'code' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'link' | 'clear' | 'undo' | 'redo' | '|'; /** User-facing strings (localizable via `messages`). Every one is a tooltip + * accessible name on a toolbar button, so leaving them hard-coded made the * whole toolbar English-only for screen-reader users. */ type RichTextMessages = Record, string> & { linkPrompt: string; toolbar: string; }; type Props = { /** HTML string (bindable). */ value?: string; onChange?: (html: string) => void; placeholder?: string; disabled?: boolean; readonly?: boolean; minHeight?: string; /** Toolbar tools + order; use '|' for a separator. */ tools?: RichTextTool[]; ariaLabel?: string; /** Override any toolbar label / prompt (localization). */ messages?: Partial; }; declare const SvRichText: import("svelte").Component; type SvRichText = ReturnType; export default SvRichText;