import type { Root as XastRoot, Element as XastElement } from "xast";
import type { Selector } from "../grammars/peggy-types";
/**
* Convert a parsed CSS selector into a minimal chain of elements for which
* it would select. E.g., `foo > bar` would turn into ``
*
* Results are wrapped in a xast Root node.
*/
export declare function selectorToXast(selector: Selector | null): XastRoot;
/**
* Convert a parsed CSS selector into a minimal chain of elements for which
* it would select. E.g., `foo > bar` would turn into ``
*/
export declare function selectorToXastNode(selector: Selector): XastElement;
//# sourceMappingURL=selector-to-xast.d.ts.map