netscape-bookmark-parser 1.2.0 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/deno-wasm_bg-Brhw7cJv.js +21 -0
- package/dist/deno-wasm_bg-Brhw7cJv.js.map +1 -0
- package/dist/deno-wasm_bg-wasm-BfK4r2Sm.js +12 -0
- package/dist/deno-wasm_bg-wasm-BfK4r2Sm.js.map +1 -0
- package/dist/index.d.ts +370 -6
- package/dist/index.js +4203 -11
- package/dist/index.js.map +1 -1
- package/dist/web.d.ts +2 -4
- package/dist/web.js +13 -3
- package/dist/web.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,372 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/_dist/src/constructor-lock.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Used to enforce illegal constructors
|
|
4
|
+
*/ declare const CTOR_KEY: unique symbol;
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/_dist/src/dom/element.d.ts
|
|
7
|
+
interface DOMTokenList {
|
|
8
|
+
[index: number]: string;
|
|
9
|
+
}
|
|
10
|
+
declare class DOMTokenList {
|
|
11
|
+
constructor(onChange: (className: string) => void, key: typeof CTOR_KEY);
|
|
12
|
+
set value(input: string);
|
|
13
|
+
get value(): string;
|
|
14
|
+
get length(): number;
|
|
15
|
+
entries(): IterableIterator<[number, string]>;
|
|
16
|
+
values(): IterableIterator<string>;
|
|
17
|
+
keys(): IterableIterator<number>;
|
|
18
|
+
item(index: number): string;
|
|
19
|
+
contains(element: string): boolean;
|
|
20
|
+
add(...elements: Array<string>): void;
|
|
21
|
+
remove(...elements: Array<string>): void;
|
|
22
|
+
replace(oldToken: string, newToken: string): boolean;
|
|
23
|
+
supports(): never;
|
|
24
|
+
toggle(element: string, force?: boolean): boolean;
|
|
25
|
+
forEach(callback: (value: string, index: number, list: DOMTokenList) => void): void;
|
|
26
|
+
}
|
|
27
|
+
declare const initializeClassListSym: unique symbol;
|
|
28
|
+
declare const setNamedNodeMapOwnerElementSym: unique symbol;
|
|
29
|
+
declare const setAttrValueSym: unique symbol;
|
|
30
|
+
declare class Attr extends Node {
|
|
31
|
+
constructor(map: NamedNodeMap | null, name: string, value: string, key: typeof CTOR_KEY);
|
|
32
|
+
[setNamedNodeMapOwnerElementSym](ownerElement: Element | null): void;
|
|
33
|
+
[setAttrValueSym](value: string): void;
|
|
34
|
+
override _shallowClone(): Attr;
|
|
35
|
+
override cloneNode(): Attr;
|
|
36
|
+
override appendChild(): Node;
|
|
37
|
+
override replaceChild(): Node;
|
|
38
|
+
override insertBefore(): Node;
|
|
39
|
+
override removeChild(): Node;
|
|
40
|
+
get name(): string;
|
|
41
|
+
get localName(): string;
|
|
42
|
+
get value(): string;
|
|
43
|
+
set value(value: any);
|
|
44
|
+
get ownerElement(): Element | null;
|
|
45
|
+
get specified(): boolean;
|
|
46
|
+
get prefix(): string | null;
|
|
47
|
+
}
|
|
48
|
+
interface NamedNodeMap {
|
|
49
|
+
[index: number]: Attr;
|
|
50
|
+
}
|
|
51
|
+
declare const setNamedNodeMapValueSym: unique symbol;
|
|
52
|
+
declare const getNamedNodeMapValueSym: unique symbol;
|
|
53
|
+
declare const getNamedNodeMapAttrNamesSym: unique symbol;
|
|
54
|
+
declare const getNamedNodeMapAttrNodeSym: unique symbol;
|
|
55
|
+
declare const removeNamedNodeMapAttrSym: unique symbol;
|
|
56
|
+
declare class NamedNodeMap {
|
|
57
|
+
constructor(ownerElement: Element, onAttrNodeChange: (attr: string, value: string | null) => void, key: typeof CTOR_KEY);
|
|
58
|
+
[getNamedNodeMapAttrNodeSym](attribute: string): Attr;
|
|
59
|
+
[getNamedNodeMapAttrNamesSym](): string[];
|
|
60
|
+
[getNamedNodeMapValueSym](attribute: string): string | undefined;
|
|
61
|
+
[setNamedNodeMapValueSym](attribute: string, value: string, bubble?: boolean): void;
|
|
62
|
+
/**
|
|
63
|
+
* Called when an attribute is removed from
|
|
64
|
+
* an element
|
|
65
|
+
*/ [removeNamedNodeMapAttrSym](attribute: string): void;
|
|
66
|
+
get length(): number;
|
|
67
|
+
item(index: number): Attr | null;
|
|
68
|
+
getNamedItem(attribute: string): Attr | null;
|
|
69
|
+
setNamedItem(attrNode: Attr): void;
|
|
70
|
+
removeNamedItem(attribute: string): Attr;
|
|
71
|
+
}
|
|
72
|
+
declare class Element extends Node {
|
|
73
|
+
get attributes(): NamedNodeMap;
|
|
74
|
+
[initializeClassListSym](): void;
|
|
75
|
+
constructor(tagName: string, parentNode: Node | null, attributes: [string, string][], key: typeof CTOR_KEY);
|
|
76
|
+
get tagName(): string;
|
|
77
|
+
get localName(): string;
|
|
78
|
+
override _shallowClone(): Node;
|
|
79
|
+
get childElementCount(): number;
|
|
80
|
+
get className(): string;
|
|
81
|
+
set className(className: string);
|
|
82
|
+
get classList(): DOMTokenList;
|
|
83
|
+
get outerHTML(): string;
|
|
84
|
+
set outerHTML(html: string);
|
|
85
|
+
get innerHTML(): string;
|
|
86
|
+
set innerHTML(html: string);
|
|
87
|
+
get innerText(): string;
|
|
88
|
+
set innerText(text: string);
|
|
89
|
+
get children(): HTMLCollection;
|
|
90
|
+
get id(): string;
|
|
91
|
+
set id(id: string);
|
|
92
|
+
get dataset(): Record<string, string | undefined>;
|
|
93
|
+
getAttributeNames(): string[];
|
|
94
|
+
getAttribute(rawName: string): string | null;
|
|
95
|
+
setAttribute(rawName: string, value: any): void;
|
|
96
|
+
removeAttribute(rawName: string): void;
|
|
97
|
+
toggleAttribute(rawName: string, force?: boolean): boolean;
|
|
98
|
+
hasAttribute(rawName: string): boolean;
|
|
99
|
+
hasAttributeNS(_namespace: string, rawName: string): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name
|
|
102
|
+
*/ getAttributeNode(rawName: string): Attr | null;
|
|
103
|
+
/**
|
|
104
|
+
* https://dom.spec.whatwg.org/#concept-element-attributes-set
|
|
105
|
+
*/ setAttributeNode(attr: Attr): Attr | null;
|
|
106
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
107
|
+
remove(): void;
|
|
108
|
+
append(...nodes: (Node | string)[]): void;
|
|
109
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
110
|
+
before(...nodes: (Node | string)[]): void;
|
|
111
|
+
after(...nodes: (Node | string)[]): void;
|
|
112
|
+
get firstElementChild(): Element | null;
|
|
113
|
+
get lastElementChild(): Element | null;
|
|
114
|
+
get nextElementSibling(): Element | null;
|
|
115
|
+
get previousElementSibling(): Element | null;
|
|
116
|
+
querySelector<T = Element>(selectors: string): T | null;
|
|
117
|
+
querySelectorAll<T extends Element = Element>(selectors: string): NodeList<T>;
|
|
118
|
+
matches(selectorString: string): boolean;
|
|
119
|
+
closest(selectorString: string): Element | null;
|
|
120
|
+
getElementById(id: string): Element | null;
|
|
121
|
+
getElementsByTagName(tagName: string): Element[];
|
|
122
|
+
_getElementsByTagNameWildcard(search: Node[]): Node[];
|
|
123
|
+
_getElementsByTagName(tagName: string, search: Node[]): Node[];
|
|
124
|
+
getElementsByClassName(className: string): Element[];
|
|
125
|
+
getElementsByTagNameNS(_namespace: string, localName: string): Element[];
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/_dist/src/dom/html-collection.d.ts
|
|
129
|
+
declare const HTMLCollectionMutatorSym: unique symbol;
|
|
130
|
+
interface HTMLCollection {
|
|
131
|
+
new (): HTMLCollection;
|
|
132
|
+
readonly [index: number]: Element;
|
|
133
|
+
readonly length: number;
|
|
134
|
+
[Symbol.iterator](): Generator<Element>;
|
|
135
|
+
item(index: number): Element;
|
|
136
|
+
[HTMLCollectionMutatorSym](): HTMLCollectionMutator;
|
|
137
|
+
}
|
|
138
|
+
interface HTMLCollectionMutator {
|
|
139
|
+
push(...elements: Element[]): number;
|
|
140
|
+
splice(start: number, deleteCount?: number, ...items: Element[]): Element[];
|
|
141
|
+
indexOf(element: Element, fromIndex?: number | undefined): number;
|
|
142
|
+
}
|
|
143
|
+
declare const HTMLCollection: HTMLCollection;
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/_dist/src/dom/node-list.d.ts
|
|
146
|
+
declare const nodeListMutatorSym: unique symbol;
|
|
147
|
+
interface NodeList<T extends Node = Node> {
|
|
148
|
+
new (): NodeList;
|
|
149
|
+
readonly [index: number]: T;
|
|
150
|
+
readonly length: number;
|
|
151
|
+
[Symbol.iterator](): Generator<T>;
|
|
152
|
+
item(index: number): T;
|
|
153
|
+
forEach(cb: (node: T, index: number, nodeList: T[]) => void, thisArg?: NodeList | undefined): void;
|
|
154
|
+
[nodeListMutatorSym](): NodeListMutator;
|
|
155
|
+
}
|
|
156
|
+
interface NodeListMutator {
|
|
157
|
+
push(...nodes: Node[]): number;
|
|
158
|
+
splice(start: number, deleteCount?: number, ...items: Node[]): Node[];
|
|
159
|
+
indexOf(node: Node, fromIndex?: number | undefined): number;
|
|
160
|
+
indexOfElementsView(node: Node, fromIndex?: number | undefined): number;
|
|
161
|
+
elementsView(): HTMLCollection;
|
|
162
|
+
}
|
|
163
|
+
declare const NodeList: NodeList;
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/_dist/src/dom/document-fragment.d.ts
|
|
166
|
+
declare class DocumentFragment extends Node {
|
|
167
|
+
constructor();
|
|
168
|
+
get childElementCount(): number;
|
|
169
|
+
get children(): HTMLCollection;
|
|
170
|
+
get firstElementChild(): Element | null;
|
|
171
|
+
get lastElementChild(): Element | null;
|
|
172
|
+
override _shallowClone(): DocumentFragment;
|
|
173
|
+
append(...nodes: (Node | string)[]): void;
|
|
174
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
175
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
176
|
+
getElementById(id: string): Element | null;
|
|
177
|
+
querySelector(selectors: string): Element | null;
|
|
178
|
+
querySelectorAll(selectors: string): NodeList;
|
|
179
|
+
}
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/_dist/src/dom/selectors/selectors.d.ts
|
|
182
|
+
type Selector = (doc: Document) => {
|
|
183
|
+
first(selector: string, context: Element | Document, callback?: (element: Element) => void): Element | null;
|
|
184
|
+
match(selector: string, context: Element | Document, callback?: (element: Element) => void): boolean;
|
|
185
|
+
select(selector: string, context: Element | Document, callback?: (element: Element) => void): Element[];
|
|
186
|
+
};
|
|
187
|
+
type SelectorApi = ReturnType<Selector>;
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/_dist/src/dom/document.d.ts
|
|
190
|
+
declare class DOMImplementation {
|
|
191
|
+
constructor(key: typeof CTOR_KEY);
|
|
192
|
+
createDocument(): void;
|
|
193
|
+
createHTMLDocument(titleStr?: string): HTMLDocument$1;
|
|
194
|
+
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
|
|
195
|
+
}
|
|
196
|
+
declare class DocumentType extends Node {
|
|
197
|
+
constructor(name: string, publicId: string, systemId: string, key: typeof CTOR_KEY);
|
|
198
|
+
get name(): string;
|
|
199
|
+
get publicId(): string;
|
|
200
|
+
get systemId(): string;
|
|
201
|
+
override _shallowClone(): Node;
|
|
202
|
+
}
|
|
203
|
+
interface ElementCreationOptions {
|
|
204
|
+
is: string;
|
|
205
|
+
}
|
|
206
|
+
type VisibilityState = "visible" | "hidden" | "prerender";
|
|
207
|
+
type NamespaceURI = "http://www.w3.org/1999/xhtml" | "http://www.w3.org/2000/svg" | "http://www.w3.org/1998/Math/MathML";
|
|
208
|
+
declare class Document extends Node {
|
|
209
|
+
public head: Element;
|
|
210
|
+
public body: Element;
|
|
211
|
+
public implementation: DOMImplementation;
|
|
212
|
+
constructor();
|
|
213
|
+
override _shallowClone(): Node;
|
|
214
|
+
get _nwapi(): SelectorApi;
|
|
215
|
+
get documentURI(): string;
|
|
216
|
+
get title(): string;
|
|
217
|
+
set title(value: string);
|
|
218
|
+
get cookie(): string;
|
|
219
|
+
set cookie(newCookie: string);
|
|
220
|
+
get visibilityState(): VisibilityState;
|
|
221
|
+
get hidden(): boolean;
|
|
222
|
+
get compatMode(): string;
|
|
223
|
+
get documentElement(): Element | null;
|
|
224
|
+
get doctype(): DocumentType | null;
|
|
225
|
+
get childElementCount(): number;
|
|
226
|
+
override appendChild(child: Node): Node;
|
|
227
|
+
createElement(tagName: string, options?: ElementCreationOptions): Element;
|
|
228
|
+
createElementNS(namespace: NamespaceURI, qualifiedName: string, options?: ElementCreationOptions): Element;
|
|
229
|
+
createTextNode(data?: string): Text;
|
|
230
|
+
createComment(data?: string): Comment;
|
|
231
|
+
createDocumentFragment(): DocumentFragment;
|
|
232
|
+
importNode(node: Node, deep?: boolean): Node;
|
|
233
|
+
adoptNode(node: Node): Node;
|
|
234
|
+
override cloneNode(deep?: boolean): Document;
|
|
235
|
+
querySelector<T = Element>(selectors: string): T | null;
|
|
236
|
+
querySelectorAll<T extends Element = Element>(selectors: string): NodeList<T>;
|
|
237
|
+
getElementById(id: string): Element | null;
|
|
238
|
+
getElementsByTagName(tagName: string): Element[];
|
|
239
|
+
private _getElementsByTagNameWildcard: any;
|
|
240
|
+
private _getElementsByTagName: any;
|
|
241
|
+
getElementsByTagNameNS(_namespace: string, localName: string): Element[];
|
|
242
|
+
getElementsByClassName(className: string): Element[];
|
|
243
|
+
hasFocus(): boolean;
|
|
244
|
+
}
|
|
245
|
+
declare class HTMLDocument$1 extends Document {
|
|
246
|
+
constructor(key: typeof CTOR_KEY);
|
|
247
|
+
override _shallowClone(): Node;
|
|
248
|
+
}
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/_dist/src/dom/node.d.ts
|
|
251
|
+
declare enum NodeType {
|
|
252
|
+
ELEMENT_NODE = 1,
|
|
253
|
+
ATTRIBUTE_NODE = 2,
|
|
254
|
+
TEXT_NODE = 3,
|
|
255
|
+
CDATA_SECTION_NODE = 4,
|
|
256
|
+
ENTITY_REFERENCE_NODE = 5,
|
|
257
|
+
ENTITY_NODE = 6,
|
|
258
|
+
PROCESSING_INSTRUCTION_NODE = 7,
|
|
259
|
+
COMMENT_NODE = 8,
|
|
260
|
+
DOCUMENT_NODE = 9,
|
|
261
|
+
DOCUMENT_TYPE_NODE = 10,
|
|
262
|
+
DOCUMENT_FRAGMENT_NODE = 11,
|
|
263
|
+
NOTATION_NODE = 12
|
|
264
|
+
}
|
|
265
|
+
declare class Node extends EventTarget {
|
|
266
|
+
nodeName: string;
|
|
267
|
+
nodeType: NodeType;
|
|
268
|
+
public parentNode: Node | null;
|
|
269
|
+
get parentElement(): Element | null;
|
|
270
|
+
static ELEMENT_NODE: any;
|
|
271
|
+
static ATTRIBUTE_NODE: any;
|
|
272
|
+
static TEXT_NODE: any;
|
|
273
|
+
static CDATA_SECTION_NODE: any;
|
|
274
|
+
static ENTITY_REFERENCE_NODE: any;
|
|
275
|
+
static ENTITY_NODE: any;
|
|
276
|
+
static PROCESSING_INSTRUCTION_NODE: any;
|
|
277
|
+
static COMMENT_NODE: any;
|
|
278
|
+
static DOCUMENT_NODE: any;
|
|
279
|
+
static DOCUMENT_TYPE_NODE: any;
|
|
280
|
+
static DOCUMENT_FRAGMENT_NODE: any;
|
|
281
|
+
static NOTATION_NODE: any;
|
|
282
|
+
constructor(nodeName: string, nodeType: NodeType, parentNode: Node | null, key: typeof CTOR_KEY);
|
|
283
|
+
get childNodes(): NodeList;
|
|
284
|
+
_getChildNodesMutator(): NodeListMutator;
|
|
285
|
+
_hasInitializedChildNodes(): boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Update ancestor chain & owner document for this child
|
|
288
|
+
* and all its children.
|
|
289
|
+
*/ _setParent(newParent: Node | null, force?: boolean): void;
|
|
290
|
+
_assertNotAncestor(child: Node): void;
|
|
291
|
+
_setOwnerDocument(document: Document | null): void;
|
|
292
|
+
contains(child: Node): boolean;
|
|
293
|
+
get ownerDocument(): Document | null;
|
|
294
|
+
get nodeValue(): string | null;
|
|
295
|
+
set nodeValue(value: unknown);
|
|
296
|
+
get textContent(): string;
|
|
297
|
+
set textContent(content: string);
|
|
298
|
+
get firstChild(): Node | null;
|
|
299
|
+
get lastChild(): Node | null;
|
|
300
|
+
hasChildNodes(): boolean;
|
|
301
|
+
cloneNode(deep?: boolean): Node;
|
|
302
|
+
_shallowClone(): Node;
|
|
303
|
+
_remove(skipSetParent?: boolean): void;
|
|
304
|
+
appendChild(child: Node): Node;
|
|
305
|
+
_appendTo(parentNode: Node): this;
|
|
306
|
+
removeChild(child: Node): Node;
|
|
307
|
+
replaceChild(newChild: Node, oldChild: Node): Node;
|
|
308
|
+
insertBefore(newNode: Node, refNode: Node | null): Node;
|
|
309
|
+
_replaceWith(...nodes: (Node | string)[]): void;
|
|
310
|
+
get nextSibling(): Node | null;
|
|
311
|
+
get previousSibling(): Node | null;
|
|
312
|
+
public static DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
313
|
+
public static DOCUMENT_POSITION_PRECEDING: 2;
|
|
314
|
+
public static DOCUMENT_POSITION_FOLLOWING: 4;
|
|
315
|
+
public static DOCUMENT_POSITION_CONTAINS: 8;
|
|
316
|
+
public static DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
317
|
+
public static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
318
|
+
/**
|
|
319
|
+
* FIXME: Does not implement attribute node checks
|
|
320
|
+
* ref: https://dom.spec.whatwg.org/#dom-node-comparedocumentposition
|
|
321
|
+
* MDN: https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
322
|
+
*/ compareDocumentPosition(other: Node): number;
|
|
323
|
+
getRootNode(opts?: {
|
|
324
|
+
composed?: boolean;
|
|
325
|
+
}): Node;
|
|
326
|
+
}
|
|
327
|
+
interface Node {
|
|
328
|
+
ELEMENT_NODE: NodeType;
|
|
329
|
+
ATTRIBUTE_NODE: NodeType;
|
|
330
|
+
TEXT_NODE: NodeType;
|
|
331
|
+
CDATA_SECTION_NODE: NodeType;
|
|
332
|
+
ENTITY_REFERENCE_NODE: NodeType;
|
|
333
|
+
ENTITY_NODE: NodeType;
|
|
334
|
+
PROCESSING_INSTRUCTION_NODE: NodeType;
|
|
335
|
+
COMMENT_NODE: NodeType;
|
|
336
|
+
DOCUMENT_NODE: NodeType;
|
|
337
|
+
DOCUMENT_TYPE_NODE: NodeType;
|
|
338
|
+
DOCUMENT_FRAGMENT_NODE: NodeType;
|
|
339
|
+
NOTATION_NODE: NodeType;
|
|
340
|
+
}
|
|
341
|
+
declare class CharacterData extends Node {
|
|
342
|
+
constructor(data: string, nodeName: string, nodeType: NodeType, parentNode: Node | null, key: typeof CTOR_KEY);
|
|
343
|
+
override get nodeValue(): string;
|
|
344
|
+
override set nodeValue(value: any);
|
|
345
|
+
get data(): string;
|
|
346
|
+
set data(value: any);
|
|
347
|
+
override get textContent(): string;
|
|
348
|
+
override set textContent(value: any);
|
|
349
|
+
get length(): number;
|
|
350
|
+
before(...nodes: (Node | string)[]): void;
|
|
351
|
+
after(...nodes: (Node | string)[]): void;
|
|
352
|
+
remove(): void;
|
|
353
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
354
|
+
}
|
|
355
|
+
declare class Text extends CharacterData {
|
|
356
|
+
constructor(text?: string);
|
|
357
|
+
override _shallowClone(): Node;
|
|
358
|
+
}
|
|
359
|
+
declare class Comment extends CharacterData {
|
|
360
|
+
constructor(text?: string);
|
|
361
|
+
override _shallowClone(): Node;
|
|
362
|
+
override get textContent(): string;
|
|
363
|
+
}
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/_dist/src/api.d.ts
|
|
366
|
+
declare const HTMLDocument: Pick<typeof HTMLDocument$1, keyof typeof HTMLDocument$1> & Function;
|
|
367
|
+
type HTMLDocument = HTMLDocument$1;
|
|
368
|
+
//#endregion
|
|
3
369
|
//#region src/BookmarksTree/BookmarksTree.d.ts
|
|
4
|
-
|
|
5
370
|
/**
|
|
6
371
|
* A class representing a bookmark tree in Netscape Bookmark format
|
|
7
372
|
*
|
|
@@ -18,7 +383,7 @@ import { HTMLDocument } from "@b-fuze/deno-dom";
|
|
|
18
383
|
* tree.set("Development", folder);
|
|
19
384
|
* ```
|
|
20
385
|
*/
|
|
21
|
-
declare class BookmarksTree extends Map<string, string | BookmarksTree> {
|
|
386
|
+
export declare class BookmarksTree extends Map<string, string | BookmarksTree> {
|
|
22
387
|
/**
|
|
23
388
|
* Creates a new BookmarksTree instance
|
|
24
389
|
*/
|
|
@@ -138,7 +503,7 @@ declare class BookmarksTree extends Map<string, string | BookmarksTree> {
|
|
|
138
503
|
* const tree = BookmarksParser.parse(bookmarkHtml);
|
|
139
504
|
* ```
|
|
140
505
|
*/
|
|
141
|
-
declare class BookmarksParser {
|
|
506
|
+
export declare class BookmarksParser {
|
|
142
507
|
/**
|
|
143
508
|
* Alias for the {@link parseFromHTMLString} method.
|
|
144
509
|
*
|
|
@@ -236,5 +601,4 @@ declare class BookmarksParser {
|
|
|
236
601
|
static parseFromJSON(jsonObj: Record<string, unknown>): BookmarksTree;
|
|
237
602
|
}
|
|
238
603
|
//#endregion
|
|
239
|
-
export { BookmarksParser, BookmarksTree };
|
|
240
604
|
//# sourceMappingURL=index.d.ts.map
|