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 WhileRule}. * * @category Statement */ export type WhileRuleRaws = Omit; /** * The initializer properties for {@link WhileRule}. * * @category Statement */ export type WhileRuleProps = ContainerProps & { raws?: WhileRuleRaws; whileCondition: AnyExpression | ExpressionProps; }; /** * A `@while` rule. Extends [`postcss.AtRule`]. * * [`postcss.AtRule`]: https://postcss.org/api/#atrule * * @category Statement */ export declare class WhileRule extends _AtRule> implements Statement { readonly sassType: "while-rule"; parent: StatementWithChildren | undefined; raws: WhileRuleRaws; 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 continue looping. */ get whileCondition(): AnyExpression; set whileCondition(whileCondition: AnyExpression | ExpressionProps); private _whileCondition?; constructor(defaults: WhileRuleProps); /** @hidden */ constructor(_: undefined, inner: sassInternal.WhileRule); 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[]; }