diff options
author | RaindropsSys <contact@minteck.org> | 2023-04-06 22:18:28 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-04-06 22:18:28 +0200 |
commit | 83354b2b88218090988dd6e526b0a2505b57e0f1 (patch) | |
tree | e3c73c38a122a78bb7e66fbb99056407edd9d4b9 /includes/external/addressbook/node_modules/htmlparser2/lib/index.d.ts | |
parent | 47b8f2299a483024c4a6a8876af825a010954caa (diff) | |
download | pluralconnect-83354b2b88218090988dd6e526b0a2505b57e0f1.tar.gz pluralconnect-83354b2b88218090988dd6e526b0a2505b57e0f1.tar.bz2 pluralconnect-83354b2b88218090988dd6e526b0a2505b57e0f1.zip |
Updated 5 files and added 1110 files (automated)
Diffstat (limited to 'includes/external/addressbook/node_modules/htmlparser2/lib/index.d.ts')
-rw-r--r-- | includes/external/addressbook/node_modules/htmlparser2/lib/index.d.ts | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/includes/external/addressbook/node_modules/htmlparser2/lib/index.d.ts b/includes/external/addressbook/node_modules/htmlparser2/lib/index.d.ts new file mode 100644 index 0000000..9f08885 --- /dev/null +++ b/includes/external/addressbook/node_modules/htmlparser2/lib/index.d.ts @@ -0,0 +1,44 @@ +import { Parser, ParserOptions } from "./Parser.js"; +export { Parser, type ParserOptions } from "./Parser.js"; +import { DomHandlerOptions, ChildNode, Element, Document } from "domhandler"; +export { DomHandler, DomHandler as DefaultHandler, type DomHandlerOptions, } from "domhandler"; +export type Options = ParserOptions & DomHandlerOptions; +/** + * Parses the data, returns the resulting document. + * + * @param data The data that should be parsed. + * @param options Optional options for the parser and DOM builder. + */ +export declare function parseDocument(data: string, options?: Options): Document; +/** + * Parses data, returns an array of the root nodes. + * + * Note that the root nodes still have a `Document` node as their parent. + * Use `parseDocument` to get the `Document` node instead. + * + * @param data The data that should be parsed. + * @param options Optional options for the parser and DOM builder. + * @deprecated Use `parseDocument` instead. + */ +export declare function parseDOM(data: string, options?: Options): ChildNode[]; +/** + * Creates a parser instance, with an attached DOM handler. + * + * @param callback A callback that will be called once parsing has been completed. + * @param options Optional options for the parser and DOM builder. + * @param elementCallback An optional callback that will be called every time a tag has been completed inside of the DOM. + */ +export declare function createDomStream(callback: (error: Error | null, dom: ChildNode[]) => void, options?: Options, elementCallback?: (element: Element) => void): Parser; +export { default as Tokenizer, type Callbacks as TokenizerCallbacks, } from "./Tokenizer.js"; +export * as ElementType from "domelementtype"; +import { Feed } from "domutils"; +export { getFeed } from "domutils"; +/** + * Parse a feed. + * + * @param feed The feed that should be parsed, as a string. + * @param options Optionally, options for parsing. When using this, you should set `xmlMode` to `true`. + */ +export declare function parseFeed(feed: string, options?: Options): Feed | null; +export * as DomUtils from "domutils"; +//# sourceMappingURL=index.d.ts.map
\ No newline at end of file |