import { Mark } from '@tiptap/core';
/**
 * Attributes carried by the TextColor mark.
 */
interface TextColorAttributes {
    /** The foreground color as a hex string, CSS variable, or valid CSS color name. */
    color: string | null;
}
/**
 * Custom TipTap mark that applies an inline foreground color to selected text.
 *
 * Wraps text in `<span style="color: value">` and parses it back on load.
 * Supports hex colors (#RGB, #RRGGBB), CSS variables (var(--name)), and named CSS colors.
 * Validates all color values to prevent CSS injection attacks.
 *
 * @example
 * // Hex color
 * editor.chain().focus().setMark('textColor', { color: '#db2777' }).run();
 * // CSS variable
 * editor.chain().focus().setMark('textColor', { color: 'var(--base-primary)' }).run();
 * // Named color
 * editor.chain().focus().setMark('textColor', { color: 'red' }).run();
 * // Remove text color
 * editor.chain().focus().removeMark('textColor').run();
 */
declare const TextColor: Mark<Record<string, unknown>, TextColorAttributes>;
export default TextColor;
