import * as postcss from 'postcss'; import type { AtRuleRaws } from 'postcss/lib/at-rule'; import { AnyExpression, ExpressionProps } from '../expression'; import type * as sassInternal from '../sass-internal'; import { ChildNode, ContainerProps, NewNode, Statement, StatementWithChildren } from '.'; import { _AtRule } from './at-rule-internal'; /** * The set of raws supported by {@link IfRule}. * * @category Statement */ export type IfRuleRaws = Omit; /** * The initializer properties for {@link IfRule}. * * @category Statement */ export type IfRuleProps = ContainerProps & { raws?: IfRuleRaws; ifCondition: AnyExpression | ExpressionProps; }; /** * A `@if` rule. Extends [`postcss.AtRule`]. * * [`postcss.AtRule`]: https://postcss.org/api/#atrule * * @category Statement */ export declare class IfRule extends _AtRule> implements Statement { readonly sassType: "if-rule"; parent: StatementWithChildren | undefined; raws: IfRuleRaws; nodes: ChildNode[]; get name(): string; set name(value: string); get params(): string; set params(value: string | number | undefined); /** The expression whose value determines whether to execute this block. */ get ifCondition(): AnyExpression; set ifCondition(ifCondition: AnyExpression | ExpressionProps); private _ifCondition?; constructor(defaults: IfRuleProps); /** @hidden */ constructor(_: undefined, inner: sassInternal.IfRule); clone(overrides?: Partial): this; toJSON(): object; /** @hidden */ toJSON(_: string, inputs: Map): object; /** @hidden */ toString(stringifier?: postcss.Stringifier | postcss.Syntax): string; /** @hidden */ get nonStatementChildren(): ReadonlyArray; /** @hidden */ normalize(node: NewNode, sample?: postcss.Node): ChildNode[]; }