slim.d.ts 1.1 KB

12345678910111213141516171819202122232425
  1. /**
  2. * @file Alternative entry point for Cheerio that always uses htmlparser2. This
  3. * way, parse5 won't be loaded, saving some memory.
  4. */
  5. import { type CheerioAPI } from './load.js';
  6. import { type CheerioOptions } from './options.js';
  7. import type { AnyNode } from 'domhandler';
  8. export { contains, merge } from './static.js';
  9. export type * from './types.js';
  10. export type { Cheerio } from './cheerio.js';
  11. export type { CheerioOptions, HTMLParser2Options } from './options.js';
  12. export type { CheerioAPI } from './load.js';
  13. /**
  14. * Create a querying function, bound to a document created from the provided
  15. * markup.
  16. *
  17. * @param content - Markup to be loaded.
  18. * @param options - Options for the created instance.
  19. * @param isDocument - Always `false` here, as we are always using
  20. * `htmlparser2`.
  21. * @returns The loaded document.
  22. * @see {@link https://cheerio.js.org#loading} for additional usage information.
  23. */
  24. export declare const load: (content: string | AnyNode | AnyNode[] | Buffer, options?: CheerioOptions | null, isDocument?: boolean) => CheerioAPI;
  25. //# sourceMappingURL=slim.d.ts.map