/** @file Types used in signatures of Cheerio methods. */ 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'; type AlphaNumeric = LowercaseLetters | Uppercase | `${number}`; type SelectorSpecial = '.' | '#' | ':' | '|' | '>' | '+' | '~' | '['; /** * Type for identifying selectors. Allows us to "upgrade" queries using * selectors to return `Element`s. */ export type SelectorType = `${SelectorSpecial}${AlphaNumeric}${string}` | `${AlphaNumeric}${string}`; import type { Cheerio } from './cheerio.js'; import type { AnyNode } from 'domhandler'; /** Elements that can be passed to manipulation methods. */ export type BasicAcceptedElems = ArrayLike | T | string; /** Elements that can be passed to manipulation methods, including functions. */ export type AcceptedElems = BasicAcceptedElems | ((this: T, i: number, el: T) => BasicAcceptedElems); /** Function signature, for traversal methods. */ export type FilterFunction = (this: T, i: number, el: T) => boolean; /** Supported filter types, for traversal methods. */ export type AcceptedFilters = string | FilterFunction | T | Cheerio; export {}; //# sourceMappingURL=types.d.ts.map