export function resolveEntitlements(ctx, cmd) {
    const { entitlements } = cmd.payload?.config ?? {};
    if (entitlements) {
        return Promise.resolve(entitlements);
    }
    const { backend } = ctx;
    return backend.entitlements().resolveEntitlements();
}
//# sourceMappingURL=resolveEntitlements.js.map