12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- import { type CheerioOptions, type InternalOptions } from './options.js';
- import * as staticMethods from './static.js';
- import { Cheerio } from './cheerio.js';
- import type { AnyNode, Document, Element } from 'domhandler';
- import type { SelectorType, BasicAcceptedElems } from './types.js';
- type StaticType = typeof staticMethods;
- export interface CheerioAPI extends StaticType {
-
- <T extends AnyNode, S extends string>(selector?: S | BasicAcceptedElems<T>, context?: BasicAcceptedElems<AnyNode> | null, root?: BasicAcceptedElems<Document>, options?: CheerioOptions): Cheerio<S extends SelectorType ? Element : T>;
-
- _root: Document;
-
- _options: InternalOptions;
-
- fn: typeof Cheerio.prototype;
-
- load: ReturnType<typeof getLoad>;
- }
- export declare function getLoad(parse: typeof Cheerio.prototype._parse, render: (dom: AnyNode | ArrayLike<AnyNode>, options: InternalOptions) => string): (content: string | AnyNode | AnyNode[] | Buffer, options?: CheerioOptions | null, isDocument?: boolean) => CheerioAPI;
- export {};
|