export function createRemoteAwareApprovalGate(options) {
    return {
        isAutoApproved: () => {
            if (options.shouldUseRemote()) {
                return options.remote.isAutoApproved();
            }
            return options.fallback.isAutoApproved();
        },
        requestApproval: (request, ctx) => {
            if (options.shouldUseRemote()) {
                return options.remote.requestApproval(request, ctx);
            }
            return options.fallback.requestApproval(request, ctx);
        },
        onAcceptAll: () => {
            options.remote.onAcceptAll();
            options.fallback.onAcceptAll();
        }
    };
}
//# sourceMappingURL=approval-gate.js.map