import { ErrorCode, ValueTag, type CellValue } from '@bilig/protocol';
import type { RuntimeFormula } from '../runtime-state.js';
import type { RuntimeColumnSlice } from './runtime-column-store-service.js';
export declare function decodeErrorCode(rawCode: number | undefined): ErrorCode;
export declare function evaluationErrorMessage(message: string, cause: unknown): string;
export declare function decodeRuntimeTag(rawTag: number | undefined): ValueTag;
export declare function cellValueCriteriaString(value: CellValue): string;
export declare function referenceReplacementKey(sheetName: string, address: string): string;
export declare function cellValuesEqual(left: CellValue, right: CellValue): boolean;
export declare function sameExactNumericValue(left: number, right: number): boolean;
export declare function directNumberResult(value: number): CellValue;
export declare function directErrorResult(code: ErrorCode): CellValue;
export declare function offsetDirectAggregateResult(directAggregate: RuntimeFormula['directAggregate'], value: CellValue): CellValue;
export declare function directCriteriaCacheValueKey(value: CellValue): string;
export declare function numericLikeValueAt(slice: RuntimeColumnSlice, offset: number): number | undefined;
export declare function strictNumericAggregateCandidateAt(slice: RuntimeColumnSlice, offset: number): number | undefined;
