1 | import { type ParserOptions } from './parser/index.js';
|
2 | import type { DefaultTreeAdapterMap } from './tree-adapters/default.js';
|
3 | import type { TreeAdapterTypeMap } from './tree-adapters/interface.js';
|
4 | export { type DefaultTreeAdapterMap, defaultTreeAdapter } from './tree-adapters/default.js';
|
5 | import type * as DefaultTreeAdapter from './tree-adapters/default.js';
|
6 | export declare namespace DefaultTreeAdapterTypes {
|
7 | type Document = DefaultTreeAdapter.Document;
|
8 | type DocumentFragment = DefaultTreeAdapter.DocumentFragment;
|
9 | type Element = DefaultTreeAdapter.Element;
|
10 | type CommentNode = DefaultTreeAdapter.CommentNode;
|
11 | type TextNode = DefaultTreeAdapter.TextNode;
|
12 | type Template = DefaultTreeAdapter.Template;
|
13 | type DocumentType = DefaultTreeAdapter.DocumentType;
|
14 | type ParentNode = DefaultTreeAdapter.ParentNode;
|
15 | type ChildNode = DefaultTreeAdapter.ChildNode;
|
16 | type Node = DefaultTreeAdapter.Node;
|
17 | type DefaultTreeAdapterMap = DefaultTreeAdapter.DefaultTreeAdapterMap;
|
18 | }
|
19 | export type { TreeAdapter, TreeAdapterTypeMap } from './tree-adapters/interface.js';
|
20 | export { type ParserOptions, Parser } from './parser/index.js';
|
21 | export { serialize, serializeOuter, type SerializerOptions } from './serializer/index.js';
|
22 | export { ERR as ErrorCodes, type ParserError, type ParserErrorHandler } from './common/error-codes.js';
|
23 |
|
24 | export * as foreignContent from './common/foreign-content.js';
|
25 | export * as html from './common/html.js';
|
26 | export * as Token from './common/token.js';
|
27 |
|
28 | export { Tokenizer, type TokenizerOptions, TokenizerMode, type TokenHandler } from './tokenizer/index.js';
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare function parse<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(html: string, options?: ParserOptions<T>): T['document'];
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | export declare function parseFragment<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(fragmentContext: T['parentNode'] | null, html: string, options: ParserOptions<T>): T['documentFragment'];
|
71 | export declare function parseFragment<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(html: string, options?: ParserOptions<T>): T['documentFragment'];
|