import { Extension } from '@tiptap/core'; import { PluginKey } from '@tiptap/pm/state'; import { DecorationSet } from '@tiptap/pm/view'; import { Rgba } from '@nextblock-cms/utils'; export interface LowContrastTextHintOptions { /** Set to `false` to disable the hint entirely without unregistering it. */ enabled: boolean; /** * Documents larger than this (in ProseMirror content units) skip the walk. * The editor's own `CharacterCount` caps authored content at 50,000 * characters, so this only ever fires for pathological pasted markup, where * freezing the tab would be far worse than losing the hint. */ maxDocumentSize: number; /** Minimum contrast ratio for body copy. Large text is scaled from this. */ threshold: number; } export declare const lowContrastTextHintKey: PluginKey; interface LowContrastPluginState { decorations: DecorationSet; /** The resolved editing surface the current `decorations` were measured against. */ surface: Rgba | null; } export declare const LowContrastTextHint: Extension; export default LowContrastTextHint;