// Copyright 2025 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.
import { processGesture } from '../gesture/processGesture.js';
import { isMainThreadHydrating } from '../lifecycle/patch/isMainThreadHydrating.js';
export function updateGesture(snapshot, expIndex, oldValue, elementIndex, workletType) {
    if (!snapshot.__elements) {
        return;
    }
    const value = snapshot.__values[expIndex];
    if (workletType === 'main-thread') {
        processGesture(snapshot.__elements[elementIndex], value, oldValue, isMainThreadHydrating);
    }
}
//# sourceMappingURL=gesture.js.map