// Type definitions for htmlparser2 v3.7.x // Project: https://github.com/fb55/htmlparser2/ // Definitions by: James Roland Cabresos // Linus Unnebäck // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import { Writable } from 'stream' 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 (