import type CSSRule from '../CSSRule.js';
import type CSSStyleSheet from '../CSSStyleSheet.js';
/**
 * CSS parser.
 */
export default class CSSParser {
    #private;
    /**
     * Constructor.
     *
     * @param parentStyleSheet Parent style sheet.
     */
    constructor(parentStyleSheet: CSSStyleSheet);
    /**
     * Parses HTML and returns a root element.
     *
     * @param cssText CSS code.
     * @returns CSS rules.
     */
    parseFromString(cssText: string): CSSRule[];
    /**
     * Validates a selector text.
     *
     * @see https://www.w3.org/TR/CSS21/syndata.html#rule-sets
     * @param selectorText Selector text.
     * @returns True if valid, false otherwise.
     */
    private validateSelectorText;
}
//# sourceMappingURL=CSSParser.d.ts.map