import { default as React } from 'react';
interface User {
    id?: number;
    username?: string;
    email?: string;
    name?: string;
    last_viewed_notifications_at?: string | null;
}
interface UserContextType {
    currentUser: User | null;
    loading: boolean;
    error: Error | null;
    refetchUser: () => Promise<void>;
}
declare const UserContext: React.Context<UserContextType>;
export declare function UserProvider({ children }: {
    children: React.ReactNode;
}): import("react/jsx-runtime").JSX.Element;
export declare function useCurrentUser(): UserContextType;
export default UserContext;
