/// <reference types="react" />
export interface Identity {
    email: string;
    otpEnabled: boolean;
    personId: string;
    projects: IdentityProject[];
    permissions: {
        canCreateProject: boolean;
    };
}
export interface IdentityProject {
    slug: string;
    name: string;
    roles: string[];
}
interface IdentityContext {
    clearIdentity: () => void;
    identity: Identity;
}
export declare const IdentityContext: import("react").Context<IdentityContext | undefined>;
export declare const IdentityRefreshContext: import("react").Context<() => void>;
interface IdentityProviderProps {
    onInvalidIdentity?: () => void;
    allowUnauthenticated?: boolean;
}
export declare const IdentityProvider: React.FC<IdentityProviderProps>;
export {};
//# sourceMappingURL=IdentityProvider.d.ts.map