parse.d.ts 591 B

12345678910111213
  1. /// <reference types="node" />
  2. import { Node, Document, NodeWithChildren } from 'domhandler';
  3. import type { InternalOptions } from './options';
  4. export default function parse(content: string | Document | Node | Node[] | Buffer, options: InternalOptions, isDocument: boolean): Document;
  5. /**
  6. * Update the dom structure, for one changed layer.
  7. *
  8. * @param newChilds - The new children.
  9. * @param parent - The new parent.
  10. * @returns The parent node.
  11. */
  12. export declare function update(newChilds: Node[] | Node, parent: NodeWithChildren | null): Node | null;
  13. //# sourceMappingURL=parse.d.ts.map