/** * Parses an XML string into a document. * * @param source - The XML to parse, trimmed before parsing since leading whitespace makes a document invalid */ export declare function parseXmlString(source: string): Promise; /** * Parses an HTML string into a document. * * The source is wrapped in `` because implementations disagree on loose markup: browsers * move it into ``, `linkedom` leaves the document empty. Wrapping it makes `document.body` * hold the parsed markup everywhere. * * @param source - The HTML to parse, which may be a fragment */ export declare function parseHtmlString(source: string): Promise; //# sourceMappingURL=xml-parser.d.ts.map