import type { RawUserData } from '@explorins/pers-sdk/core'; import { AccountOwnerType } from '@explorins/pers-sdk/core'; import type { UserDTO, SessionAuthContextResponseDTO } from '@explorins/pers-sdk'; export type { RawUserData }; /** * React hook for authentication operations in the PERS SDK * * Provides methods for user login, logout, token management, and authentication state. * Automatically manages authentication state and user data synchronization. * * @returns Authentication hook with methods and state * * @example * ```typescript * function LoginComponent() { * const { login, logout, isAuthenticated, user } = useAuth(); * * const handleLogin = async (token: string) => { * try { * await login(token, 'user'); * console.log('Login successful'); * } catch (error) { * console.error('Login failed:', error); * } * }; * * return ( *
* {isAuthenticated ? ( *
*

Welcome, {user?.name}

* *
* ) : ( * * )} *
* ); * } * ``` */ export declare const useAuth: () => { isInitialized: boolean; isAuthenticated: boolean; user: UserDTO | import("@explorins/pers-sdk").AdminDTO | null; login: (jwtToken: string, userType?: AccountOwnerType) => Promise; loginWithRawData: (rawUserData: RawUserData) => Promise; logout: () => Promise; refreshUserData: () => Promise; getCurrentUser: () => Promise; checkIsAuthenticated: () => Promise; refreshTokens: (refreshToken?: string) => Promise; clearAuth: () => Promise; hasValidAuth: () => Promise; }; export type AuthHook = ReturnType; //# sourceMappingURL=useAuth.d.ts.map