import React from 'react'; import { User } from './user'; export interface UserActions { /** Fetch + switch to a new tenant-scoped user */ changeTenant: (tenantId: string) => Promise | void; /** * Tenant the app is switching TO. It leads `user.currentTenantId`, which * only catches up once the new tenant-scoped user response lands. */ selectedTenantId: string | null; /** * True while `user` is still the one we rendered for the tenant being * switched away from. * @see useIsTenantSwitching */ isTenantSwitching: boolean; } export type UserAction = { type: 'SET_USER'; }; export type AccessTokenAction = { type: 'SET_ACCESS_TOKEN'; }; export type Dispatch = (action: UserAction | AccessTokenAction) => void; export declare const UserContext: React.Context; export declare const UserDispatchContext: React.Context; //# sourceMappingURL=internal.d.ts.map