index.d.ts 517 B

12345678910111213141516
  1. /**
  2. * Turn serialized HTML into a hast tree.
  3. *
  4. * @param {VFile | Value} value
  5. * Serialized HTML to parse.
  6. * @param {Readonly<Options> | null | undefined} [options]
  7. * Configuration (optional).
  8. * @returns {Root}
  9. * Tree.
  10. */
  11. export function fromHtml(value: VFile | Value, options?: Readonly<Options> | null | undefined): Root;
  12. import { VFile } from 'vfile';
  13. import type { Value } from 'vfile';
  14. import type { Options } from './types.js';
  15. import type { Root } from 'hast';
  16. //# sourceMappingURL=index.d.ts.map