export interface UserContextActions { createUser: (payload: { email: string; familyName: string; givenName: string; password: string; phone: string; }) => void; dismissError: (payload: { error: string; }) => void; } export interface UserContextState { user?: { email: string; phone: string; }; errors?: Record; } export interface UserContext extends UserContextActions, UserContextState { }