1 | import { Fetch } from './types';
|
2 | type DOMParserConstructor = typeof DOMParser;
|
3 | export interface IParserOptions {
|
4 | |
5 |
|
6 |
|
7 | fetch?: Fetch;
|
8 | |
9 |
|
10 |
|
11 | DOMParser?: DOMParserConstructor;
|
12 | }
|
13 | export declare class Parser {
|
14 | private readonly fetch;
|
15 | private readonly DOMParser;
|
16 | constructor({ fetch, DOMParser }?: IParserOptions);
|
17 | parse(resource: string): Promise<Document>;
|
18 | parseFromString(xml: string): Document;
|
19 | private checkDocument;
|
20 | load(url: string): Promise<Document>;
|
21 | }
|
22 | export {};
|
23 |
|
\ | No newline at end of file |