import { PhpAttributes, PhpNode } from './base'; import { PhpExpr } from './expressions'; import { PhpIdentifier } from './identifier'; /** * Represents a PHP declare item (e.g., `encoding='UTF-8'` in `declare(encoding='UTF-8');`). * * @category PHP AST */ export interface PhpDeclareItem extends PhpNode { readonly nodeType: 'DeclareItem'; readonly key: PhpIdentifier; readonly value: PhpExpr; } /** * Builds a PHP declare item node. * * @category PHP AST * @param key - The key of the declare item, either a string or a `PhpIdentifier`. * @param value - The expression representing the value of the declare item. * @param attributes - Optional attributes for the node. * @returns A `PhpDeclareItem` node. */ export declare function buildDeclareItem(key: string | PhpIdentifier, value: PhpExpr, attributes?: PhpAttributes): PhpDeclareItem;