import type { ErrorUnion, UnionValue } from '../../treb-base-types/src/index'; export declare enum ErrorType { Argument = "ARG", Data = "DATA", Reference = "REF", Name = "NAME", Expression = "EXPR", Value = "VALUE", Unknown = "UNK", NotImpl = "NOTIMPL", Div0 = "DIV/0", NA = "N/A", Loop = "LOOP",// circular reference Spill = "SPILL" } export interface FunctionError { error: ErrorType; } export declare const NotImplError: FunctionError; export declare const NAError: () => UnionValue; export declare const ExpressionError: () => UnionValue; export declare const DataError: () => UnionValue; export declare const DivideByZeroError: () => UnionValue; export declare const ArgumentError: () => UnionValue; export declare const ValueError: () => ErrorUnion; export declare const ReferenceError: () => UnionValue; export declare const NameError: () => UnionValue; export declare const SpillError: () => UnionValue; export declare const UnknownError: () => UnionValue; /** * type guard function * * ...this is maybe too precise? */ export declare const IsError: (test: unknown) => test is FunctionError;