/** * Constants for the rich text editor component * * This file consolidates all the configuration constants used by the rich text editor. * Previously split across multiple files, now consolidated for better maintainability. */ export declare const HOTKEYS: { readonly "mod+b": "bold"; readonly "mod+i": "italic"; readonly "mod+u": "underline"; readonly "mod+`": "code"; }; export declare const EDITOR_DEFAULTS: { readonly placeholder: "Start typing..."; readonly isDisabled: false; readonly isReadOnly: false; readonly autoFocus: false; }; export declare const BLOCK_TAGS: { readonly blockquote: "block-quote"; readonly p: "paragraph"; readonly pre: "code"; readonly h1: "heading-one"; readonly h2: "heading-two"; readonly h3: "heading-three"; readonly h4: "heading-four"; readonly h5: "heading-five"; readonly ul: "bulleted-list"; readonly ol: "numbered-list"; readonly li: "list-item"; readonly a: "link"; }; export declare const MARK_TAGS: { readonly strong: "bold"; readonly b: "bold"; readonly em: "italic"; readonly i: "italic"; readonly u: "underline"; readonly code: "code"; readonly sup: "superscript"; readonly sub: "subscript"; readonly del: "strikethrough"; readonly s: "strikethrough"; }; export declare const FORMATTING_OPTIONS: { readonly STRIKETHROUGH: "strikethrough"; readonly CODE: "code"; readonly SUPERSCRIPT: "superscript"; readonly SUBSCRIPT: "subscript"; }; export declare const BASIC_FORMATTING: readonly ["strikethrough", "code"]; export declare const SCRIPT_FORMATTING: readonly ["superscript", "subscript"]; export declare const MUTUALLY_EXCLUSIVE_GROUPS: { readonly script: readonly ["superscript", "subscript"]; }; export type HotkeyType = typeof HOTKEYS; export type HotkeyKey = keyof HotkeyType; export type HotkeyValue = HotkeyType[HotkeyKey]; export type BlockTagKey = keyof typeof BLOCK_TAGS; export type MarkTagKey = keyof typeof MARK_TAGS; export type BlockTagValue = (typeof BLOCK_TAGS)[BlockTagKey]; export type MarkTagValue = (typeof MARK_TAGS)[MarkTagKey]; export type FormattingType = (typeof FORMATTING_OPTIONS)[keyof typeof FORMATTING_OPTIONS]; export type BasicFormattingType = (typeof BASIC_FORMATTING)[number]; export type ScriptFormattingType = (typeof SCRIPT_FORMATTING)[number];