import type { Error } from './models.js';
export declare class ApiError extends Error {
    status: number;
    error_code?: string;
    request_id?: string;
    body?: Partial<Error>;
    constructor(status: number, body?: Partial<Error>, message?: string);
}
export declare function throwIfNotOk(res: Response): Promise<void>;
//# sourceMappingURL=errors.d.ts.map