File size: 589 Bytes
04f98c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export interface IParserOptions {
    /**

     * WHATWG-compatible `fetch` function.

     */
    fetch?: typeof fetch;
    /**

     * XML/HTML parser from string into DOM Document.

     */
    DOMParser?: typeof DOMParser;
}
export default class Parser {
    private readonly fetch;
    private readonly DOMParser;
    constructor({ fetch, DOMParser }?: IParserOptions);
    parse(resource: string): Promise<Document>;
    parseFromString(xml: string): Document;
    private checkDocument;
    load(url: string): Promise<Document>;
}
//# sourceMappingURL=Parser.d.ts.map