1 import postcss from './postcss';
2 import Node from './node';
3 export default class Declaration extends Node implements postcss.Declaration {
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.DeclarationRaws;
15 * The declaration's property name.
19 * The declaration's value. This value will be cleaned of comments. If the
20 * source value contained comments, those comments will be available in the
21 * _value.raws property. If you have not changed the value, the result of
22 * decl.toString() will include the original raws value (comments and all).
26 * True if the declaration has an !important annotation.
30 * Represents a CSS declaration.
32 constructor(defaults?: postcss.DeclarationNewProps);
34 * @param overrides New properties to override in the clone.
35 * @returns A clone of this node. The node and its (cloned) children will
36 * have a clean parent and code style properties.
38 clone(overrides?: Object): any;
39 toJSON(): postcss.JsonDeclaration;