import { Parser , ParserOptions } from "./Parser" ; export { Parser , ParserOptions } ; import { DomHandler , DomHandlerOptions , Node , Element } from "domhandler" ; export { DomHandler , DomHandlerOptions } ; type Options = ParserOptions & DomHandlerOptions ; param data param options export function parseDOM ( data , options ? ) { const handler = new DomHandler ( void 0 , options ) ; new Parser ( handler , options ) . end ( data ) ; return handler . dom ; } param cb param options param elementCb export function createDomStream ( cb , options ? , elementCb ? ) { const handler = new DomHandler ( cb , options , elementCb ) ; return new Parser ( handler , options ) ; } export { default as Tokenizer } from "./Tokenizer" ; import * as ElementType from "domelementtype" ; export { ElementType } ; /**
 * List of all events that the parser emits.
 *
 * Format: eventname: number of arguments.
 */ export const EVENTS = { attribute : 2 , cdatastart : 0 , cdataend : 0 , text : 1 , processinginstruction : 2 , comment : 1 , commentend : 0 , closetag : 1 , opentag : 2 , opentagname : 1 , error : 1 , end : 0 } ; export * from "./FeedHandler" ; export * from "./WritableStream" ; export * from "./CollectingHandler" ; import * as DomUtils from "domutils" ; export { DomUtils } ; export { DomHandler as DefaultHandler } ; export { FeedHandler as RssHandler } from "./FeedHandler" ;