/** * SDK Event System * * This module provides common event type definitions for the SDK's * event system, including authentication, API, and loading events. */ export interface SdkEvent { type: string; payload?: Record; timestamp?: number; } export interface AuthEvent extends SdkEvent { type: "auth_refreshing" | "auth_success" | "auth_error" | "auth_logout"; payload?: { message?: string; error?: string; operation?: string; }; } export interface ApiEvent extends SdkEvent { type: "api_request" | "api_response" | "api_error"; payload?: { url?: string; method?: string; status?: number; duration?: number; error?: string; }; } export interface LoadingEvent extends SdkEvent { type: "loading_start" | "loading_end"; payload?: { operation?: string; resource?: string; }; } export type EventCallback = (event: SdkEvent) => void; //# sourceMappingURL=events.d.ts.map