import { AuthErrorPayload, User } from '../../types';

export type StateErrorTypes = 'registration' | 'authentication' | 'signout';
export type AuthContext = {
    user: User | null;
    mfa: {
        ticket: string;
    } | null;
    accessToken: {
        value: string | null;
        expiresAt: Date | null;
        expiresInSeconds: number | null;
    };
    refreshTimer: {
        startedAt: Date | null;
        attempts: number;
        lastAttempt: Date | null;
    };
    refreshToken: {
        value: string | null;
        isPAT?: boolean;
    };
    /** Number of times the user tried to get an access token from a refresh token but got a network error */
    importTokenAttempts: number;
    errors: Partial<Record<StateErrorTypes, AuthErrorPayload>>;
};
export declare const INITIAL_MACHINE_CONTEXT: AuthContext;
//# sourceMappingURL=context.d.ts.map