import { BaseError } from '../base';
export declare class APIError extends BaseError {
    status: number;
    /**
     * The `payload` object from the API error response body, when present.
     *
     * Some error responses carry structured context beyond the `error`/`code`
     * pair (e.g. `merge_accounts_confirmation` returns the field-level merge
     * conflicts under `payload.mergeConflicts`). It is preserved here so that
     * downstream error mappers can surface that context as typed errors instead
     * of discarding it.
     */
    payload: Record<string, unknown> | undefined;
    constructor(message: string, code: string, status: number, payload?: Record<string, unknown>);
    static fromResponse(response: Response): Promise<APIError | null>;
}
//# sourceMappingURL=APIError.d.ts.map