// Type definitions for htmlparser2 v3.7.x // Project: https://github.com/fb55/htmlparser2/ // Definitions by: James Roland Cabresos // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "htmlparser2" { export interface Handler { onopentag?:(name:string, attribs:{[type:string]: string}) => void; onopentagname?:(name:string) => void; onattribute?:(name:string, value:string) => void; ontext?:(text:string) => void; onclosetag?: (text:string) => void; onprocessinginstruction?:(name:string, data:string) => void; oncomment?:(data:string) => void; oncommentend?:() => void; oncdatastart?:() => void; oncdataend?:() => void; onerror?:(error:Error) => void; onreset?:() => void; onend?:() => void; } export interface Options { /*** * Indicates whether special tags (