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