import { type RouteContext } from '../../core/index.js'; import type { WorkOSAuthorizationResource } from '../entities.js'; import { type WorkOSStore } from '../store.js'; /** * Gather the permission slugs a membership holds, from: * 1. Every role the membership holds (organization-wide) * 2. Additional role assignments — organization-wide ones always apply; * resource-scoped ones apply only when checking against that resource or * one of its descendants. * * When no resource is given the set is membership-wide (every assignment * counts, matching pre-0.11 behavior); production always scopes to a resource. */ declare function getPermissionsForMembership(ws: WorkOSStore, membershipId: string, resource?: WorkOSAuthorizationResource): Set; export declare function authorizationCheckRoutes(ctx: RouteContext): void; export { getPermissionsForMembership };