/** * Arithmetic Evaluation * * Evaluates bash arithmetic expressions including: * - Basic operators (+, -, *, /, %) * - Comparison operators (<, <=, >, >=, ==, !=) * - Bitwise operators (&, |, ^, ~, <<, >>) * - Logical operators (&&, ||, !) * - Assignment operators (=, +=, -=, etc.) * - Ternary operator (? :) * - Pre/post increment/decrement (++, --) * - Nested arithmetic: $((expr)) * - Command substitution: $(cmd) or `cmd` * * Known limitations: * - Dynamic arithmetic expressions (e.g., ${base}#a where base=16) are not * fully supported - variable expansion happens at parse time, not runtime. */ import type { ArithExpr } from "../ast/types.js"; import type { InterpreterContext } from "./types.js"; export declare function evaluateArithmetic(ctx: InterpreterContext, expr: ArithExpr, isExpansionContext?: boolean): Promise;