import React from 'react'; import type { FC, ReactNode } from 'react'; import type { User } from '../types/user'; interface AuthState { isInitialised: boolean; isAuthenticated: boolean; user: User | null; } interface AuthContextValue extends AuthState { method: 'JWT'; login: (email: string, password: string) => Promise; logout: () => void; register: (email: string, name: string, password: string) => Promise; } interface AuthProviderProps { children: ReactNode; } declare const AuthContext: React.Context; export declare const AuthProvider: FC; export default AuthContext;