import type { AuthError, UserInfo } from '../types'; export interface AuthMachineContext { user: UserInfo | null; error: AuthError | null; accessToken: string | null; refreshToken: string | null; isHydrated: boolean; /** @internal Tracks whether the current authenticating state was entered via hydrate or signIn */ _flow: 'none' | 'hydrate' | 'signIn'; } export type AuthMachineEvent = { type: 'HYDRATE_START'; } | { type: 'HYDRATE_SUCCESS'; user: UserInfo; accessToken: string; refreshToken: string | null; } | { type: 'HYDRATE_NO_TOKENS'; } | { type: 'HYDRATE_FAILURE'; error: AuthError; } | { type: 'SET_HYDRATED'; } | { type: 'SIGN_IN'; } | { type: 'SIGN_IN_SUCCESS'; user: UserInfo; accessToken: string; refreshToken: string | null; } | { type: 'SIGN_IN_FAILURE'; error: AuthError; } | { type: 'SIGN_OUT'; } | { type: 'TOKEN_REFRESHED'; accessToken: string; refreshToken: string | null; } | { type: 'REFRESH_FAILED'; }; export declare const authMachine: import("xstate").StateMachine; export type AuthMachineSnapshot = ReturnType; //# sourceMappingURL=auth-machine.d.ts.map