site/node_modules/speech-rule-engine/js/highlighter/highlighter.d.ts
2024-10-14 08:09:33 +02:00

14 lines
441 B
TypeScript

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;
}