'use client' export type UserRole = 'creator' | 'agency' | 'brand' export interface User { id: string name: string email: string role: UserRole avatar?: string tenantId: string tenantName: string } export interface LoginCredentials { email: string password: string } export interface AuthState { user: User | null isAuthenticated: boolean isLoading: boolean } export interface AuthContextType extends AuthState { login: (credentials: LoginCredentials) => Promise<{ success: boolean; error?: string }> logout: () => void switchRole: (role: UserRole) => void }