import type { Element, MaybeElement, FindOptions, FindPredicate, GetTextOptions, ExtractionSpec, ExtractResult, SanitizeOptions, PrettifyOptions, ParseOptions, SerializeOptions, SelectOptions } from './types'; import { selectParents, selectParent } from './selector'; import { Elements } from './elements'; export declare class Document { readonly root: Element; constructor(html: string, options?: ParseOptions); select(selector: string, options?: SelectOptions): Elements; selectOne(selector: string): MaybeElement; exists(selector: string): boolean; count(selector: string): number; findAll(options: FindOptions | string | FindPredicate): Element[]; find(options: FindOptions | string | FindPredicate): MaybeElement; getText(options?: GetTextOptions): string; get strippedStrings(): Generator; toHtml(options?: SerializeOptions): string; prettify(options?: PrettifyOptions): string; extract(spec: T): ExtractResult; sanitize(options?: SanitizeOptions): this; smooth(): this; } export declare function parseHtml(html: string, options?: ParseOptions): Document; export { selectParents, selectParent }; //# sourceMappingURL=document.d.ts.map