blob: 712f533dc1eb914d8b72126a8ebff29040b48eb7 [file] [log] [blame]
import { NodeMutation, NodeWatcherHandler } from "../../../../../presentation/nodeWatcher/NodeWatcherHandler";
export abstract class NodeWatcherScriptHandler<Options>
implements NodeWatcherHandler
{
abstract initialDiscoverySelector?: string;
constructor(protected options: Options) {}
abstract nodeFilter(nodeMutation: NodeMutation): boolean;
abstract onMutatedNode(nodeMutation: NodeMutation): void;
}
export type ConcreteNodeWatcherScriptHandler<Options> = {
new (options: Options): NodeWatcherScriptHandler<Options>;
};