import { KeyValue } from '@antv/x6-common'; import { Registry } from '../registry'; import { CellView } from '../../view'; import * as highlighters from './main'; export declare namespace Highlighter { interface Definition { highlight: (cellView: CellView, magnet: Element, options: T) => void; unhighlight: (cellView: CellView, magnet: Element, options: T) => void; } type CommonDefinition = Highlighter.Definition; } export declare namespace Highlighter { function check(name: string, highlighter: Highlighter.CommonDefinition): void; } export declare namespace Highlighter { type Presets = (typeof Highlighter)['presets']; type OptionsMap = { readonly [K in keyof Presets]-?: Parameters[2]; }; type NativeNames = keyof Presets; interface NativeItem { name: T; args?: OptionsMap[T]; } interface ManaualItem { name: Exclude; args?: KeyValue; } } export declare namespace Highlighter { const presets: typeof highlighters; const registry: Registry; }