import { HttpErrorResponse } from '@angular/common/http';
import { type ServerError, ServerErrorResponse } from '@dereekb/util';
/**
 * Converts the error response to a POJO.
 */
export declare function convertToPOJOServerErrorResponse(httpError: HttpErrorResponse | object): ServerError;
/**
 * Converts an HTTP Error Response to a ServerErrorResponse type.
 *
 * @param error
 * @returns
 */
export declare function convertToServerErrorResponse(error: HttpErrorResponse | object): ServerErrorResponse | undefined;
