compile.d.ts 939 B

12345678910111213
  1. import { Selector } from "css-what";
  2. import type { CompiledQuery, InternalOptions, InternalSelector } from "./types.js";
  3. /**
  4. * Compiles a selector to an executable function.
  5. *
  6. * @param selector Selector to compile.
  7. * @param options Compilation options.
  8. * @param context Optional context for the selector.
  9. */
  10. export declare function compile<Node, ElementNode extends Node>(selector: string | Selector[][], options: InternalOptions<Node, ElementNode>, context?: Node[] | Node): CompiledQuery<Node>;
  11. export declare function compileUnsafe<Node, ElementNode extends Node>(selector: string | Selector[][], options: InternalOptions<Node, ElementNode>, context?: Node[] | Node): CompiledQuery<ElementNode>;
  12. export declare function compileToken<Node, ElementNode extends Node>(token: InternalSelector[][], options: InternalOptions<Node, ElementNode>, context?: Node[] | Node): CompiledQuery<ElementNode>;
  13. //# sourceMappingURL=compile.d.ts.map