import { type CellValue } from '@bilig/protocol';
import type { EngineCounters } from '../../perf/engine-counters.js';
import type { WorkbookStore } from '../../workbook-store.js';
import type { RuntimeFormula } from '../runtime-state.js';
import type { RangeAggregateCacheService } from './range-aggregate-cache-service.js';
export declare function tryEvaluateDirectAggregate(input: {
    readonly formula: RuntimeFormula;
    readonly workbook: Pick<WorkbookStore, 'getSheet'>;
    readonly counters: EngineCounters;
    readonly aggregateCache: RangeAggregateCacheService;
    readonly readCellValueByIndex: (cellIndex: number | undefined) => CellValue;
}): CellValue | undefined;
