Urara-Blog/node_modules/.pnpm-store/v3/files/d1/333a25ca5c15f0794925ca73146941d0ee9731da1f88e56d270a168a12ab2ea4a205d28591a1c91a1216fe8d29dd883109a95d9d7848c2150e5e544508c357
2022-08-14 01:14:53 +08:00

20 lines
No EOL
751 B
Text

import { Selector, Traversal } from "./types";
/**
* Checks whether a specific selector is a traversal.
* This is useful eg. in swapping the order of elements that
* are not traversals.
*
* @param selector Selector to check.
*/
export declare function isTraversal(selector: Selector): selector is Traversal;
/**
* Parses `selector`, optionally with the passed `options`.
*
* @param selector Selector to parse.
* @param options Options for parsing.
* @returns Returns a two-dimensional array.
* The first dimension represents selectors separated by commas (eg. `sub1, sub2`),
* the second contains the relevant tokens for that selector.
*/
export declare function parse(selector: string): Selector[][];
//# sourceMappingURL=parse.d.ts.map