1 | declare type LowercaseLetters = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z';
|
2 | declare type AlphaNumeric = LowercaseLetters | Uppercase<LowercaseLetters> | `${number}`;
|
3 | declare type SelectorSpecial = '.' | '#' | ':' | '|' | '>' | '+' | '~' | '[';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare type SelectorType = `${SelectorSpecial}${AlphaNumeric}${string}` | `${AlphaNumeric}${string}`;
|
9 | import type { Cheerio } from './cheerio.js';
|
10 | import type { AnyNode } from 'domhandler';
|
11 |
|
12 | export declare type BasicAcceptedElems<T extends AnyNode> = Cheerio<T> | T[] | T | string;
|
13 |
|
14 | export declare type AcceptedElems<T extends AnyNode> = BasicAcceptedElems<T> | ((this: T, i: number, el: T) => BasicAcceptedElems<T>);
|
15 | /** Function signature, for traversal methods. */
|
16 | export declare type FilterFunction<T> = (this: T, i: number, el: T) => boolean;
|
17 |
|
18 | export declare type AcceptedFilters<T> = string | FilterFunction<T> | T | Cheerio<T>;
|
19 | export {};
|
20 |
|
\ | No newline at end of file |