import { type RouteContext } from '../../core/index.js'; import { type WorkOSStore } from '../store.js'; /** * The organizations whose targets a user inherits: active memberships only. A `pending` member * has not joined yet and an `inactive` one has been removed, and authenticate gates organization * scoping on the same status — so counting either here would report a flag through an * organization no session of that user's can ever be scoped to. */ export declare function organizationIdsForUser(ws: WorkOSStore, userId: string): string[]; /** * Flag slugs minted into an access token: production's `feature_flags` claim is the same set * `GET /user_management/users/{id}/feature-flags` returns, so it resolves through the same * rule. The session's organization is the only one considered — the token is org-scoped, and * a flag targeted at some *other* org the user belongs to is not on for this session. */ export declare function tokenFeatureFlags(ws: WorkOSStore, userId: string, organizationId: string | null): string[]; export declare function featureFlagRoutes(ctx: RouteContext): void;