/** * Text style definitions for rich text editor block formatting * * Used by: * - components/rich-text-toolbar.tsx: Renders text style dropdown menu with these options * - hooks/useToolbarState.ts: Manages current text style state and selection logic * - utils/text-style-utils.ts: Helper functions for text style operations * - utils/validation-utils.ts: Validates if block types are supported * * Purpose: * - Centralizes all available text styles and their visual properties * - Maps block type IDs to user-friendly labels and Chakra UI styling props * - Ensures consistent styling across the editor and UI controls */ export type TextStyleDefinition = { id: string; label: string; props: { textStyle: string; fontWeight: string; }; }; /** * Returns text style definitions with localized labels * @param format - Format function from useLocalizedStringFormatter */ export declare const getTextStyles: (format: (key: string) => string) => TextStyleDefinition[]; /** * Available block types for text style detection * * Used by: * - hooks/useToolbarState.ts: Detects currently active block type in editor * - Excludes "paragraph" as it's the default/fallback type */ export declare const blockTypes: readonly ["heading-one", "heading-two", "heading-three", "heading-four", "heading-five", "block-quote"]; export type BlockType = (typeof blockTypes)[number] | "paragraph";