export type Operand = string | number | { reference: string; }; interface CalcChain { add: (...operands: Array) => CalcChain; subtract: (...operands: Array) => CalcChain; multiply: (...operands: Array) => CalcChain; divide: (...operands: Array) => CalcChain; negate: () => CalcChain; toString: () => string; } export declare const calc: ((x: Operand) => CalcChain) & { add: (...operands: Array) => string; subtract: (...operands: Array) => string; multiply: (...operands: Array) => string; divide: (...operands: Array) => string; negate: (x: Operand) => string; }; export {};