/** * The tenant the app is switching TO, or the active one when no switch is in * flight. Prefer `user.currentTenantId` for anything describing the tenant * whose data is currently rendered; use this when you need the tenant the user * has asked for. */ export declare const useSelectedTenantId: () => string; /** * True from the moment a tenant switch starts until the tenant-scoped user has * caught up. * * `UserProvider` keeps the previous user rendered while the new one loads, so * for that window `user.currentTenantId` still names the tenant we just left — * and so does everything keyed off it: menus, permissions, the `/` home * redirect. Guard on this before acting on tenant-scoped data. * * Read from the user query rather than compared against the selected tenant on * purpose: the API may answer a switch with a different tenant than the one * asked for (no access, so it falls back to the user's default), and a * comparison would then read as "switching" forever. */ export declare const useIsTenantSwitching: () => boolean; //# sourceMappingURL=useIsTenantSwitching.d.ts.map