interface ServerErrorOptions {
    response: Response;
    result: Record<string, any> | string;
}
/**
 * Thrown when a non-200 response is returned from the server.
 */
export declare class ServerError extends Error {
    /**
     * The server response.
     */
    response: Response;
    /**
     * The status code returned from the server.
     */
    statusCode: number;
    /**
     * The JSON-parsed response body or raw body text if the text is not JSON
     * parseable.
     */
    result: Record<string, any> | string;
    constructor(message: string, options: ServerErrorOptions);
}
export {};
//# sourceMappingURL=ServerError.d.ts.map
