import * as postcss from 'postcss'; import type { AtRuleRaws } from 'postcss/lib/at-rule'; import { ParameterList, ParameterListProps } from '../parameter-list'; import { RawWithValue } from '../raw-with-value'; import * 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 FunctionRule}. * * @category Statement */ export interface FunctionRuleRaws extends Omit { /** * The function's name. * * This may be different than {@link FunctionRule.functionName} if the name * contains escape codes or underscores. */ functionName?: RawWithValue; } /** * The initializer properties for {@link FunctionRule}. * * @category Statement */ export type FunctionRuleProps = ContainerProps & { raws?: FunctionRuleRaws; functionName: string; parameters?: ParameterList | ParameterListProps; }; /** * A `@function` rule. Extends [`postcss.AtRule`]. * * [`postcss.AtRule`]: https://postcss.org/api/#atrule * * @category Statement */ export declare class FunctionRule extends _AtRule> implements Statement { readonly sassType: "function-rule"; parent: StatementWithChildren | undefined; raws: FunctionRuleRaws; nodes: ChildNode[]; /** * The name of the function. * * This is the parsed and normalized value, with underscores converted to * hyphens and escapes resolved to the characters they represent. */ functionName: string; /** The parameters that this function takes. */ get parameters(): ParameterList; set parameters(parameters: ParameterList | ParameterListProps); private _parameters; get name(): string; set name(value: string); get params(): string; set params(value: string | number | undefined); constructor(defaults: FunctionRuleProps); /** @hidden */ constructor(_: undefined, inner: sassInternal.FunctionRule); 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[]; }