export declare const FORMAT_KEYS: readonly ["fontSize", "fontFamily", "fill", "fontWeight", "fontStyle", "textDecoration", "textTransform"]; export type FormatKey = (typeof FORMAT_KEYS)[number]; export type FormatValue = { value: T | undefined; mixed: boolean; values: T[]; }; export type TextFormat = { fontSize: FormatValue; fontFamily: FormatValue; fill: FormatValue; fontWeight: FormatValue; fontStyle: FormatValue; textDecoration: FormatValue; textTransform: FormatValue; }; export type TextFormatAttrs = Partial<{ fontSize: number; fontFamily: string; fill: string; fontWeight: number | 'bold' | 'normal' | string; fontStyle: string; textDecoration: string; textTransform: string; }>; export type DecorationToken = 'underline' | 'line-through'; export declare const DECORATION_TOKENS: DecorationToken[]; export type ApplyTextFormatOptions = { decorationTokens?: DecorationToken[]; }; export declare function decorationTokensOf(value: string | undefined): Set; export declare function decorationTokensToString(tokens: Set): string; export declare function isDecorationActive(f: TextFormat, token: DecorationToken): boolean; export declare const decorationToQuillKey: (t: DecorationToken) => "underline" | "strike"; export interface TextFormatElement { type?: string; text: string; fontSize: number; fontFamily: string; fill: string; fontWeight: string; fontStyle: string; textDecoration: string; textTransform?: string; set(attrs: Record): void; store?: { history?: { transaction(fn: () => void): void; }; }; } type Target = TextFormatElement | TextFormatElement[]; export declare function getTextFormat(target: Target): TextFormat; export declare function patchTextFormat(element: TextFormatElement, attrs: TextFormatAttrs, opts?: ApplyTextFormatOptions): { attrsToSet: Record; }; export declare function applyTextFormat(target: Target, attrs: TextFormatAttrs, opts?: ApplyTextFormatOptions): void; export {};