27fb339374015c0b3e3d2e55c5a97414f3e6168d
[yaffs-website] / node_modules / uncss / node_modules / postcss / d.ts / at-rule.d.ts
1 import Container from './container';
2 import postcss from './postcss';
3 export default class AtRule extends Container implements postcss.AtRule {
4     /**
5      * Returns a string representing the node's type. Possible values are
6      * root, atrule, rule, decl or comment.
7      */
8     type: string;
9     /**
10      * Contains information to generate byte-to-byte equal node string as it
11      * was in origin input.
12      */
13     raws: postcss.AtRuleRaws;
14     /**
15      * The identifier that immediately follows the @.
16      */
17     name: string;
18     /**
19      * These are the values that follow the at-rule's name, but precede any {}
20      * block. The spec refers to this area as the at-rule's "prelude".
21      */
22     params: string;
23     /**
24      * Represents an at-rule. If it's followed in the CSS by a {} block, this
25      * node will have a nodes property representing its children.
26      */
27     constructor(defaults?: postcss.AtRuleNewProps);
28     /**
29      * @param overrides New properties to override in the clone.
30      * @returns A clone of this node. The node and its (cloned) children will
31      * have a clean parent and code style properties.
32      */
33     clone(overrides?: Object): AtRule;
34     toJSON(): postcss.JsonAtRule;
35     append(...children: any[]): this;
36     prepend(...children: any[]): this;
37     afterName: string;
38     _params: string;
39 }