agsamantha/node_modules/parseley/lib/parser.d.ts
2024-10-02 15:15:21 -05:00

19 lines
635 B
TypeScript

import * as ast from './ast';
/**
* Parse a CSS selector string.
*
* This function supports comma-separated selector lists
* and always returns an AST starting from a node of type `list`.
*
* @param str - CSS selector string (can contain commas).
*/
export declare function parse(str: string): ast.ListSelector;
/**
* Parse a CSS selector string.
*
* This function does not support comma-separated selector lists
* and always returns an AST starting from a node of type `compound`.
*
* @param str - CSS selector string (no commas).
*/
export declare function parse1(str: string): ast.CompoundSelector;