subselects.d.ts 959 B

12345678910
  1. import { CompileToken } from "./../types";
  2. import type { Selector } from "css-what";
  3. import type { CompiledQuery, InternalOptions, Adapter } from "../types";
  4. /** Used as a placeholder for :has. Will be replaced with the actual element. */
  5. export declare const PLACEHOLDER_ELEMENT: {};
  6. export declare function ensureIsTag<Node, ElementNode extends Node>(next: CompiledQuery<ElementNode>, adapter: Adapter<Node, ElementNode>): CompiledQuery<Node>;
  7. export declare type Subselect = <Node, ElementNode extends Node>(next: CompiledQuery<ElementNode>, subselect: Selector[][], options: InternalOptions<Node, ElementNode>, context: Node[] | undefined, compileToken: CompileToken<Node, ElementNode>) => CompiledQuery<ElementNode>;
  8. export declare function getNextSiblings<Node, ElementNode extends Node>(elem: Node, adapter: Adapter<Node, ElementNode>): ElementNode[];
  9. export declare const subselects: Record<string, Subselect>;
  10. //# sourceMappingURL=subselects.d.ts.map