export interface SharedState { error: string | null; loading: boolean; data: T; } export interface ActionState { type: string; payload: T; }