import { components } from '../../types/api';
export interface DprErrorMessage {
    userMessage?: string | string[] | undefined;
    developerMessage?: string | string[] | undefined;
    stack?: string;
    moreInfo?: string;
    status?: string | number;
}
interface DprErrorData {
    data: components['schemas']['ErrorResponse'];
}
declare class ErrorHandler {
    error: Error | components['schemas']['ErrorResponse'] | string | undefined | unknown | DprErrorData;
    developerMessage?: string | undefined;
    userMessage?: string | string[] | undefined;
    moreInfo?: string | undefined;
    stack?: string | undefined;
    status?: number | string | undefined;
    constructor(error: Error | components['schemas']['ErrorResponse'] | string | undefined | unknown);
    formatError: () => DprErrorMessage;
    private handleError;
}
export { ErrorHandler };
export default ErrorHandler;
