selectors.d.ts 800 B

1234567891011121314151617181920
  1. import type { InternalSelector } from "../types.js";
  2. import { type Traversal } from "css-what";
  3. export declare function isTraversal(token: InternalSelector): token is Traversal;
  4. /**
  5. * Sort the parts of the passed selector, as there is potential for
  6. * optimization (some types of selectors are faster than others).
  7. *
  8. * @param arr Selector to sort
  9. */
  10. export declare function sortRules(arr: InternalSelector[]): void;
  11. /**
  12. * Determine the quality of the passed token. The higher the number, the
  13. * faster the token is to execute.
  14. *
  15. * @param token Token to get the quality of.
  16. * @returns The token's quality.
  17. */
  18. export declare function getQuality(token: InternalSelector): number;
  19. export declare function includesScopePseudo(t: InternalSelector): boolean;
  20. //# sourceMappingURL=selectors.d.ts.map