import type { Node } from './parse.js'; export type FormulaValue = number | string | boolean | Date | null | FormulaError; export type FormulaErrorCode = '#VALUE' | '#DIV/0' | '#NAME' | '#NUM' | '#LIMIT' | '#CYCLE'; export declare class FormulaError { readonly code: FormulaErrorCode; readonly detail: string; constructor(code: FormulaErrorCode, detail: string); toString(): string; } export declare const isFormulaError: (value: unknown) => value is FormulaError; interface EvaluateContext { column: (id: string) => unknown; } export declare const FUNCTION_NAMES: string[]; export declare function evaluate(node: Node, context: EvaluateContext): FormulaValue; export {};