import { ErrorType, StationError } from '../components/models';
/**
 * Converts an `ErrorType` object into a station error.
 * @param error The error that should be converted. This is optional, so an error can be created, even if there is no original ErrorType object.
 * @param defaultTitle The message that should be used as default title, in case the `ErrorType` object is no `StationError` that already defines a title.
 * @param defaultBody The body that should be used in case the function can not infer the body of the message.
 * @returns A station error object
 */
export declare const ErrorTypeToStationError: (originalError?: ErrorType, defaultTitle?: string, defaultBody?: string) => StationError;
//# sourceMappingURL=ErrorTypeToStationError.d.ts.map