/// <reference types="node" />
import { FROM_BUFFER_ASYNC_TYPE, HTMLParseOptions, XMLParseOptions } from "./types";
import { XMLDocument, HTMLDocument } from "./document";
export declare const parseXml: (buffer: string | Buffer, options?: XMLParseOptions) => XMLDocument;
export declare const parseHtml: (buffer: string | Buffer, options?: HTMLParseOptions) => HTMLDocument;
export declare const parseBufferAsync: (type: FROM_BUFFER_ASYNC_TYPE, buffer: string | Buffer, options: HTMLParseOptions | XMLParseOptions) => Promise<XMLDocument | HTMLDocument>;
export declare const parseHtmlAsync: (buffer: string | Buffer, options?: HTMLParseOptions) => Promise<HTMLDocument>;
export declare const parseXmlAsync: (buffer: string | Buffer, options?: XMLParseOptions) => Promise<XMLDocument>;
