site/node_modules/speech-rule-engine/js/highlighter/highlighter.d.ts

14 lines
441 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
import { ColorPicker, StringColor } from './color_picker';
export interface Highlighter {
highlight(nodes: HTMLElement[]): void;
unhighlight(): void;
highlightAll(node: HTMLElement): void;
unhighlightAll(): void;
isMactionNode(node: Element): boolean;
setColor(color: ColorPicker): void;
colorString(): StringColor;
addEvents(node: HTMLElement, events: {
[key: string]: EventListener;
}): void;
}