public_library_map/node_modules/cheerio/lib/parse.d.ts

19 lines
888 B
TypeScript
Raw Normal View History

2021-11-24 19:46:47 +11:00
/// <reference types="node" />
2022-09-03 17:12:22 +10:00
import { AnyNode, Document, ParentNode } from 'domhandler';
import type { InternalOptions } from './options.js';
/**
* Get the parse function with options.
*
* @param parser - The parser function.
* @returns The parse function with options.
*/
export declare function getParse(parser: (content: string, options: InternalOptions, isDocument: boolean, context: ParentNode | null) => Document): (content: string | Document | AnyNode | AnyNode[] | Buffer, options: InternalOptions, isDocument: boolean, context: ParentNode | null) => Document;
2021-11-24 19:46:47 +11:00
/**
* Update the dom structure, for one changed layer.
*
* @param newChilds - The new children.
* @param parent - The new parent.
* @returns The parent node.
*/
2022-09-03 17:12:22 +10:00
export declare function update(newChilds: AnyNode[] | AnyNode, parent: ParentNode | null): ParentNode | null;
2021-11-24 19:46:47 +11:00
//# sourceMappingURL=parse.d.ts.map