/** * Error codes produced by formula parsing and evaluation. * They follow the spreadsheet convention and are rendered as the cell content. */ export type FormulaErrorCode = '#REF!' | '#DIV/0!' | '#CYCLE!' | '#NAME?' | '#VALUE!' | '#ERROR!'; export declare const FORMULA_ERROR_CODES: readonly FormulaErrorCode[]; /** * An error produced while evaluating a formula. * Evaluation failures are values, never thrown exceptions. */ export interface FormulaErrorValue { kind: 'error'; code: FormulaErrorCode; message?: string; } export declare function createFormulaError(code: FormulaErrorCode, message?: string): FormulaErrorValue; export declare function isFormulaErrorValue(value: unknown): value is FormulaErrorValue;