import type { AppWizard } from '@sap-devx/yeoman-ui-types'; export declare enum ERROR_TYPE { ABORT_SIGNAL = "ABORT_SIGNAL", NO_MANIFEST = "NO_MANIFEST", NO_APP_NAME = "NO_APP_NAME", NO_CDS_BIN = "NO_CDS_BIN", NO_MTA_BIN = "NO_MTA_BIN" } /** * Error messages for the deploy configuration generator. */ export declare class ErrorHandler { private static readonly cannotFindBinary; /** * Get the error message for the specified error type. * * @param errorType The error type for which the message may be returned * @returns The error message for the specified error type */ static getErrorMsgFromType(errorType?: ERROR_TYPE): string; private static readonly _errorTypeToMsg; static readonly noBaseConfig: (baseConfig: string) => string; static readonly unrecognizedTarget: (target: string) => string; static readonly fileDoesNotExist: (filePath: string) => string; static readonly folderDoesNotExist: (filePath: string) => string; } /** * Bail out with an error message. * * @param errorMessage - Error message to be displayed */ export declare function bail(errorMessage: string): void; /** * Handle error message, display it in the UI or throws an error in CLI. * * @param appWizard - AppWizard instance * @param error - error type or message * @param error.errorType - error type * @param error.errorMsg - error message */ export declare function handleErrorMessage(appWizard: AppWizard, { errorType, errorMsg }: { errorType?: ERROR_TYPE; errorMsg?: string; }): void; //# sourceMappingURL=error-handler.d.ts.map