import type { Editor } from '@tiptap/react'; export type RichTextVariable = { id: string; label: string; }; export interface RichTextEditorProps { label?: string; placeholder?: string; description?: string; value?: string; defaultValue?: string; onChange?: (html: string) => void; onBlur?: () => void; disabled?: boolean; hasError?: boolean; errorMessage?: string; className?: string; id?: string; minHeight?: string; /** Verildiğinde editör içeriği bu yüksekliği aşınca SimpleBar ile scroll edilebilir olur */ maxHeight?: string; /** HTML sanitizasyonunda (DOMPurify) izin verilen etiketler. Verilmezse varsayılan güvenli liste kullanılır. */ allowedTags?: string[]; /** Story / consumer tarafında değişken listesi göstermek için opsiyonel */ variables?: RichTextVariable[]; } export interface RichTextEditorRef { insertVariable: (variable: RichTextVariable) => void; getHTML: () => string; getEditor: () => Editor | null; focus: () => void; clear: () => void; } export declare const RichTextEditorDefault: { label: string; placeholder: string; description: string; defaultValue: string; disabled: boolean; hasError: boolean; errorMessage: string; minHeight: string; maxHeight: string; allowedTags: string[]; variables: RichTextVariable[]; };