import * as parse5 from "parse5"; import * as ast from "../../ast/index.js"; import * as files from "../../filesystem/index.js"; import { TagMapper } from "../tag-mapper.js"; /** Parser converts HTML5 source into the standardized AST format. */ export declare class Parser { private readonly tagMapper; constructor(tagMapper: TagMapper); /** * Parse returns the standard AST for the given HTML text. */ parse(text: string, startingLocation: files.Location): ast.NodeList; /** returns the subtree of the given HTML AST whose root node has the given name */ private findNodeWithName; /** returns whether the given HTML node is an empty text node */ private isEmptyTextNode; /** converts the given HTML AST node into the standard format */ private standardizeNode; /** converts the given HTML tag with open and closing tag into the standard format */ private standardizeOpenCloseTag; /** converts the given HTML standalone node into the standard format */ private standardizeStandaloneNode; /** converts the given HTML text node into the standard format */ private standardizeTextNode; } /** converts the given HTML AST node attributes into the standard AST format */ export declare function standardizeHTMLAttributes(attrs: parse5.Token.Attribute[]): ast.NodeAttributes; //# sourceMappingURL=html-parser.d.ts.map