1 import Container from './container';
2 import postcss from './postcss';
3 export default class Rule extends Container implements postcss.Rule {
5 * Returns a string representing the node's type. Possible values are
6 * root, atrule, rule, decl or comment.
10 * Contains information to generate byte-to-byte equal node string as it
11 * was in origin input.
13 raws: postcss.RuleRaws;
15 * The rule's full selector. If there are multiple comma-separated selectors,
16 * the entire group will be included.
20 * Represents a CSS rule: a selector followed by a declaration block.
22 constructor(defaults?: postcss.RuleNewProps);
24 * @param overrides New properties to override in the clone.
25 * @returns A clone of this node. The node and its (cloned) children will
26 * have a clean parent and code style properties.
28 clone(overrides?: Object): Rule;
29 toJSON(): postcss.JsonRule;
31 * @returns An array containing the rule's individual selectors.
32 * Groups of selectors are split at commas.