-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxml2efml.d.cts
43 lines (30 loc) · 1.09 KB
/
xml2efml.d.cts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
export interface EFMLConverterArgs {
ignoreEmptyTextNode?: boolean;
}
export interface DOMToEFMLArgs extends EFMLConverterArgs {
spaces?: string;
indentOffset?: number;
}
export interface DOMToASTArgs extends EFMLConverterArgs {}
export interface HTMLSnippetToEFMLArgs extends EFMLConverterArgs {
spaces?: string;
win?: Window;
}
export interface HTMLSnippetToASTArgs extends EFMLConverterArgs {
win?: Window;
}
export interface XMLToEFMLArgs extends EFMLConverterArgs {
spaces?: string;
win?: Window;
type?: string;
}
export interface XMLToASTArgs extends EFMLConverterArgs {
win?: Window;
type?: string;
}
export function dom2efml(elem: Element, options?: DOMToEFMLArgs): string;
export function dom2ast(elem: Element, options?: DOMToASTArgs): any;
export function htmlSnippet2efml(str: string, options?: HTMLSnippetToEFMLArgs): string;
export function htmlSnippet2ast(str: string, options?: HTMLSnippetToASTArgs): any;
export function xml2efml(str: string, options?: XMLToEFMLArgs): string;
export function xml2ast(str: string, options?: XMLToASTArgs): any;