import { RejectionCode } from "./rejection"; export interface ApiRejectedDetailsWire { reason: string; rejection_code?: string; error_code?: string; error_log_id?: string; } export type ApiResponse = { status: "success"; body: T; } | { status: "error"; error_details: ApiRejectedDetailsWire; }; export declare class ApiRejectedDetails { readonly reason: string; readonly rejectionCode?: RejectionCode; readonly errorCode?: string; readonly errorLogId?: string; readonly requestId?: string; constructor(params: { reason: string; rejectionCode?: RejectionCode; errorCode?: string; errorLogId?: string; requestId?: string; }); static fromWire(wire: ApiRejectedDetailsWire, requestId?: string): ApiRejectedDetails; toString(): string; } export declare function isApiResponse(value: unknown): value is ApiResponse; //# sourceMappingURL=api_response.d.ts.map