import type { All_Value_Type, Array_Type, Atom_Type, Error_Type, Ref_Type, CellAddress, CellRange, Atom_Value_Type } from '../common/types'; export declare function assertIsDefined(val: T): asserts val is NonNullable; export declare function assertTrue(val: boolean): asserts val is true; declare type TypeMap = { boolean: boolean; string: string; number: number; }; export declare function assertType(val: T, t: S): asserts val is TypeMap[S] extends T ? TypeMap[S] : never; export declare function expandReference(ref1: Error_Type | Ref_Type, ref2: Error_Type | Ref_Type): Ref_Type | Error_Type; export declare function unionReference(ref1: Error_Type | Ref_Type, ref2: Error_Type | Ref_Type): Ref_Type | Error_Type; export declare function addressInRange(range: CellRange, address: CellAddress): boolean; export declare function intersectReference(ref1: Error_Type | Ref_Type, ref2: Error_Type | Ref_Type): Ref_Type | Error_Type; export declare function checkError(...args: All_Value_Type[]): Error_Type | undefined; export declare function checkArrayNumber(isArrayFormula: boolean, ...args: (All_Value_Type | null)[]): Error_Type | undefined; export declare function isSingleCellReference(ref: Ref_Type): boolean; export declare function isSingleCellRange(range: CellRange): boolean; export declare function isSingleValueArray(array: Atom_Type[][]): boolean; export declare function mapArray(arr: Array_Type['value'], fn: (arg: Atom_Value_Type) => Atom_Value_Type): ({ readonly type: "empty"; readonly value: undefined; } | import("../common/types").String_Type | import("../common/types").Number_Type | import("../common/types").Bool_Type | Error_Type)[][]; export declare function resolveNamedExpression(text: string): Ref_Type | Error_Type; export declare function resolveCell(text: string): Ref_Type; export {};