import { Mark } from '@tiptap/core';
/**
 * Attributes carried by the BgColor mark.
 */
interface BgColorAttributes {
    /** The background color as a hex string, CSS variable, or valid CSS color name. */
    color: string | null;
}
/**
 * Custom TipTap mark that applies an inline background color to selected text.
 *
 * Wraps text in `<span style="background-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('bgColor', { color: '#84cc16' }).run();
 * // CSS variable
 * editor.chain().focus().setMark('bgColor', { color: 'var(--base-primary)' }).run();
 * // Named color
 * editor.chain().focus().setMark('bgColor', { color: 'yellow' }).run();
 * // Remove background color
 * editor.chain().focus().removeMark('bgColor').run();
 */
declare const BgColor: Mark<Record<string, unknown>, BgColorAttributes>;
export default BgColor;
