import type { VALUE_ERROR, NULL_ERROR, DIV_ERROR, NA_ERROR, REF_ERROR, NUM_ERROR, NAME_ERROR, CYCLE_ERROR, EMPTY_VALUE, ERROR_ERROR } from '../common/constants'; export interface String_Type { type: 'string'; value: string; } export interface Number_Type { type: 'number'; value: number; } export interface Bool_Type { type: 'boolean'; value: boolean; } export declare type Empty_Type = typeof EMPTY_VALUE; export interface Array_Type { type: 'array'; value: Atom_Value_Type[][]; } export declare type ERROR_ENUM = typeof VALUE_ERROR | typeof NULL_ERROR | typeof DIV_ERROR | typeof NA_ERROR | typeof REF_ERROR | typeof NUM_ERROR | typeof NAME_ERROR | typeof CYCLE_ERROR | typeof ERROR_ERROR; export interface Error_Type { type: 'error'; value: ERROR_ENUM; message: string; } export interface CellAddress { col: number; row: number; isRowAbsolute?: boolean; isColAbsolute?: boolean; } export interface CellRange { start: CellAddress; end: CellAddress; } export interface Ref_Type { type: 'reference'; value: CellRange[]; } export declare type Atom_Type = String_Type | Number_Type | Ref_Type | Empty_Type | Error_Type | Bool_Type; export declare type All_Value_Type = Atom_Type | Array_Type; export declare type Atom_Value_Type = Exclude; export declare type Raw_Value = Atom_Value_Type['value']; declare type EmptyToUndefined = T extends Empty_Type ? undefined : T; export declare type Formula_Type = { type: 'formula'; value?: EmptyToUndefined; formula: string; }; export declare type CellValue = EmptyToUndefined; export {};