// src/types/auth.ts
export interface AuthResponse {
    token?: string;
    message?: string;
    error?: string;
    status?: string;
}

export interface AuthContextType {
    isAuthenticated: boolean;
    token: string | null;
    loading: boolean;
    error: string | null;
    signIn: (name: string, pass: string) => Promise<AuthResponse | null>;
    signUp: (name: string, pass: string) => Promise<AuthResponse | null>;
    logout: () => void;
}     