import { addEngineCounter } from '../../perf/engine-counters.js';
export function recordKernelSyncOnlyLiteralChange(args) {
    addEngineCounter(args.state.counters, 'kernelSyncOnlyRecalcSkips');
    args.deferSingleCellKernelSync(args.cellIndex);
    const metrics = args.makeSingleLiteralSkipMetrics();
    args.state.setLastMetrics(metrics);
    const changedCellIndices = args.changedCellIndices ?? Uint32Array.of(args.cellIndex);
    if (args.emitTracked) {
        args.state.events.emitTracked({
            kind: 'batch',
            invalidation: 'cells',
            changedCellIndices,
            invalidatedRanges: [],
            invalidatedRows: [],
            invalidatedColumns: [],
            metrics,
            explicitChangedCount: args.explicitChangedCount ?? 1,
        });
    }
    return { changedCellIndices, metrics };
}
//# sourceMappingURL=operation-kernel-sync-only-literal-change.js.map