import { addEngineCounter } from '../../perf/engine-counters.js';
import { emitOperationTrackedCellsBatch } from './operation-tracked-event-helpers.js';
export function tryApplySingleKernelSyncOnlyLiteralMutationFastPath(args, request) {
    args.writeFastPathLiteralToExistingCell(request.existingIndex, request.value);
    request.afterWrite?.();
    addEngineCounter(args.state.counters, 'kernelSyncOnlyRecalcSkips');
    args.deferSingleCellKernelSync(request.existingIndex);
    const lastMetrics = args.makeSingleLiteralSkipMetrics();
    args.state.setLastMetrics(lastMetrics);
    if (request.emitTracked) {
        emitOperationTrackedCellsBatch({
            events: args.state.events,
            changedCellIndices: Uint32Array.of(request.existingIndex),
            metrics: lastMetrics,
        });
    }
    return true;
}
//# sourceMappingURL=operation-kernel-sync-literal-fast-path.js.map