1 | import { PseudoSelectorType } from './parser-context';
|
2 | import { Selector, RuleAttr, Rule, Selectors, SelectorEntity, RulePseudo, RuleSet, AttrValueType } from './selector';
|
3 | export { Selector, RuleAttr, Rule, Selectors, SelectorEntity, RulePseudo, RuleSet, AttrValueType, PseudoSelectorType };
|
4 | export declare class CssSelectorParser {
|
5 | protected pseudos: {
|
6 | [pseudo: string]: PseudoSelectorType;
|
7 | };
|
8 | protected attrEqualityMods: {
|
9 | [mod: string]: true;
|
10 | };
|
11 | protected ruleNestingOperators: {
|
12 | [operator: string]: true;
|
13 | };
|
14 | protected substitutesEnabled: boolean;
|
15 | registerSelectorPseudos(...pseudos: string[]): this;
|
16 | unregisterSelectorPseudos(...pseudos: string[]): this;
|
17 | registerNumericPseudos(...pseudos: string[]): this;
|
18 | unregisterNumericPseudos(...pseudos: string[]): this;
|
19 | registerNestingOperators(...operators: string[]): this;
|
20 | unregisterNestingOperators(...operators: string[]): this;
|
21 | registerAttrEqualityMods(...mods: string[]): this;
|
22 | unregisterAttrEqualityMods(...mods: string[]): this;
|
23 | enableSubstitutes(): this;
|
24 | disableSubstitutes(): this;
|
25 | parse(str: string): Selector;
|
26 | render(path: Selector): string;
|
27 | }
|