-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
237 lines (237 loc) · 5.51 KB
/
index.d.ts
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
declare module "index" {
export class Site {
static get nodeType(): string;
constructor(domain: any, name: any);
domain: any;
name: any;
append(page: any): void;
extractMeaning(): {
type: string;
domain: any;
name: any;
content: any;
};
}
export class Page {
static get nodeType(): string;
constructor(route: any, { lang, description }?: {
lang?: string;
description?: any;
});
route: any;
description: any;
docType: any;
html: any;
extractMeaning(): {
type: string;
route: any;
description: any;
content: any;
};
}
export class Html {
static get nodeType(): string;
constructor(lang: any);
head: any;
body: any;
complaints(): any[];
}
export class Head {
static get nodeType(): string;
}
export class Body {
static get nodeType(): string;
}
export class Address {
static get nodeType(): string;
extractMeaning(): {
type: string;
content: any;
};
}
export class Aside {
static get nodeType(): string;
extractMeaning(): {
type: string;
content: any;
};
}
export class A {
static get nodeType(): string;
href(value: any): this;
ariaLabel(value: any): this;
extractMeaning(): {
type: string;
href: any;
aria_label: any;
content: any;
};
}
export class Button {
static get nodeType(): string;
ariaLabel(value: any): this;
extractMeaning(): {
type: string;
aria_label: any;
content: any;
};
}
export class IMG {
static get nodeType(): string;
src(value: any): this;
alt(value: any): this;
extractMeaning(): {
type: string;
src: any;
alt: any;
};
}
export class HBase {
static get nodeType(): string;
constructor(tag: any);
depth: number;
visualHide(): void;
extractMeaning(): {
type: string;
depth: number;
content: any;
};
}
export class H1 extends HBase {
constructor();
}
export class H2 extends HBase {
constructor();
}
export class H3 extends HBase {
constructor();
}
export class H4 extends HBase {
constructor();
}
export class H5 extends HBase {
constructor();
}
export class H6 extends HBase {
constructor();
}
export class P {
static get nodeType(): string;
extractMeaning(): {
type: string;
content: any;
};
}
export class ListBase {
static get nodeType(): string;
constructor(tag: any);
item(): any;
}
export class UL extends ListBase {
constructor();
extractMeaning(): {
type: string;
items: any;
};
}
export class OL extends ListBase {
constructor();
extractMeaning(): {
type: string;
items: any;
};
}
export class LayoutTag {
static get nodeType(): string;
constructor(tag: any);
div(): any;
section(): any;
article(): any;
p(text: any): any;
img(): any;
ul(): any;
ol(): any;
h1(text: any): any;
h2(text: any): any;
h3(text: any): any;
h4(text: any): any;
h5(text: any): any;
h6(text: any): any;
}
export class Div extends LayoutTag {
constructor();
}
export class SectionBase extends LayoutTag {
type: any;
extractMeaning(): {
type: any;
content: any;
};
}
export class Main extends SectionBase {
constructor();
}
export class Article extends SectionBase {
constructor();
}
export class Section extends SectionBase {
constructor();
}
export class Nav {
static get nodeType(): string;
extractMeaning(): {
type: string;
content: any;
};
}
export class Header {
static get nodeType(): string;
extractMeaning(): {
type: string;
role: any;
content: any;
};
}
export class Footer {
static get nodeType(): string;
extractMeaning(): {
type: string;
content: any;
};
}
export class SideMenu {
static get nodeType(): string;
extractMeaning(): {
type: string;
role: any;
content: any;
};
}
namespace _default {
export { Site };
export { Page };
export { Header };
export { Footer };
export { SideMenu };
export { Div };
export { Main };
export { Section };
export { Nav };
export { Article };
export { Aside };
export { Address };
export { A };
export { IMG };
export { P };
export { Button };
export { H1 };
export { H2 };
export { H3 };
export { H4 };
export { H5 };
export { H6 };
export { OL };
export { UL };
}
export default _default;
}