/** * Standard response wrapper for all API calls. * Follows the { data, error } pattern for predictable error handling. */ export interface Msg91Response { /** The response data on success, null on error */ data: T | null; /** Error details on failure, null on success */ error: Msg91ErrorResponse | null; } /** * Error response structure */ export interface Msg91ErrorResponse { /** Error type identifier */ name: string; /** Human-readable error message */ message: string; /** Error code from MSG91 API */ code?: string; /** HTTP status code */ statusCode?: number; } /** * Raw API response from MSG91 */ export interface Msg91RawResponse { message: string; type: "success" | "error"; request_id?: string; code?: string; } //# sourceMappingURL=common.d.ts.map