import React from 'react';
import { User } from './user';
export interface UserActions {
    /** Fetch + switch to a new tenant-scoped user */
    changeTenant: (tenantId: string) => Promise<void> | void;
}
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<User | null>;
export declare const UserDispatchContext: React.Context<UserActions | null>;
//# sourceMappingURL=internal.d.ts.map