compile.d.ts 962 B

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