import type { AuthUser } from "../../interfaces/models/User"; import type { UpdateUserParams } from "../../store/api/userApi"; export interface UseUserProps { } /** * The furthest-reaching active suspension for the current user, or null. * Mirrors the server's "effective suspension" definition. */ export type ActiveSuspension = { reason: string | null; startDate: string; endDate: string | null; }; export interface UseUserValues { user: AuthUser | null; loading: boolean; updating: boolean; error: string | null; isSuspended: boolean; activeSuspension: ActiveSuspension | null; updateUser: (update: UpdateUserParams) => Promise; clearError: () => void; } /** * Redux-powered hook that provides comprehensive user management * This replaces useUserData and provides the same interface with Redux state management */ declare function useUser(_?: UseUserProps): UseUserValues; export default useUser;