import { parseAndCompile } from './pseudo-selectors/selectors'; import type { Adapter, CompiledQuery, Options } from './types'; import type { Selector } from '../what/index'; export type { Adapter, CompiledQuery, Options, Predicate, } from './types'; export declare function compile(selector: string | Selector[][], options: Options): CompiledQuery; /** Drop the cached compile of `selector` for `adapter`, or all entries * if `selector` is omitted. */ export declare function clearSelectorCache(adapter: object, selector?: string): void; export declare function selectAll(selector: string | Selector[][] | CompiledQuery, root: Node | Node[], options: Options): ElementNode[]; export declare function selectOne(selector: string | Selector[][] | CompiledQuery, root: Node | Node[], options: Options): ElementNode | null; export declare function is(node: ElementNode, selector: string | Selector[][] | CompiledQuery, options: Options): boolean; // expose internals for advanced use export { parseAndCompile };