import type { Element, Root, RootContentMap, Text } from 'hast'; export type HastUnionType = V; export type HtmlAST = HastUnionType | Root; export declare const hastGetTextContent: (ast: HtmlAST | undefined, defaultStr?: string) => string; export declare const hastGetElementChildren: (ast: HtmlAST | undefined) => Element[]; export declare const hastGetTextChildren: (ast: HtmlAST | undefined) => Text[]; export declare const hastGetTextChildrenOnlyAst: (ast: Element) => Element; export declare const hastQuerySelector: (ast: HtmlAST, selector: string) => Element | undefined; //# sourceMappingURL=hast.d.ts.map