19 lines
635 B
TypeScript
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;
|