index.d.ts 879 B

123456789101112
  1. import { Options as CSSSelectOptions } from "css-select";
  2. import type { Element, Node, Document } from "domhandler";
  3. export { filters, pseudos, aliases } from "css-select";
  4. export interface Options extends CSSSelectOptions<Node, Element> {
  5. /** Optional reference to the root of the document. If not set, this will be computed when needed. */
  6. root?: Document;
  7. }
  8. export declare function is(element: Element, selector: string | ((el: Element) => boolean), options?: Options): boolean;
  9. export declare function some(elements: Element[], selector: string | ((el: Element) => boolean), options?: Options): boolean;
  10. export declare function filter(selector: string, elements: Node[], options?: Options): Element[];
  11. export declare function select(selector: string | ((el: Element) => boolean), root: Node | Node[], options?: Options): Element[];
  12. //# sourceMappingURL=index.d.ts.map