export interface LoginData {
    email: string;
    password: string;
}

export interface LoginResponse {
    access_token: string;
    refresh_token: string;
    error?: string;
}

export interface RegisterData {
    email: string;
    password: string;
    role: "trainer" | "learner";
}

export interface ForgotPasswordData {
    email: string;
}

export interface ForgotPasswordResponse {
    message: string;
    token: string;
}

export interface ResetPasswordData {
    password: string;
    token: string;
}

export interface ResetPasswordResponse {
    message: string;
}

export interface User {
    email: string | null;
    exp: number | null;
    iat: number | null;
    role: string | null;
    sub: number | null;
}