my-idlers/node_modules/htmlparser2/lib/MultiplexHandler.d.ts

27 lines
956 B
TypeScript
Raw Normal View History

import { Handler } from "./Parser";
/**
* Calls a specific handler function for all events that are encountered.
*
* @param func The function to multiplex all events to.
*/
export default class MultiplexHandler implements Handler {
_func: (event: keyof Handler, ...args: unknown[]) => void;
constructor(func: (event: keyof Handler, ...args: unknown[]) => void);
onattribute(name: string, value: string): void;
oncdatastart(): void;
oncdataend(): void;
ontext(text: string): void;
onprocessinginstruction(name: string, value: string): void;
oncomment(comment: string): void;
oncommentend(): void;
onclosetag(name: string): void;
onopentag(name: string, attribs: {
[key: string]: string;
}): void;
onopentagname(name: string): void;
onerror(error: Error): void;
onend(): void;
onparserinit(parser: {}): void;
onreset(): void;
}
//# sourceMappingURL=MultiplexHandler.d.ts.map