import type { ConfigAnswers, FlexUICapability, CfServicesAnswers, CFApp } from '@sap-ux/adp-tooling'; import { AdaptationProjectType } from '@sap-ux/axios-extension'; /** * Determines if a credential question should be shown. * In this simplified approach, we show credentials if a system is provided and the login was not successful. * * @param {ConfigAnswers} answers - User provided configuration details. * @param {boolean} isAuthRequired - A flag indicating whether system authentication is needed. * @returns {boolean} True if credentials should be requested. */ export declare function showCredentialQuestion(answers: ConfigAnswers, isAuthRequired: boolean): boolean; /** * Determines if an application question should be shown. * * @param {ConfigAnswers} answers - The user-provided answers containing application details. * @param {boolean} appsLoaded - A flag indicating whether there are loaded apps. * @param {boolean} isAuthRequired - A flag indicating whether system authentication is needed. * @param {boolean} isLoginSuccessful - A flag indicating that system login was successful. * @returns {boolean} True if the application question should be shown. */ export declare function showApplicationQuestion(answers: ConfigAnswers, appsLoaded: boolean, isAuthRequired: boolean, isLoginSuccessful: boolean): boolean; /** * Determines if an extension project is allowed based on the system and application conditions. * * @param params - Function parameters as an object literal. * @param {boolean} params.isApplicationSelected - True if the user has selected an application. * @param {boolean} params.isApplicationSupported - Whether the selected application is supported. * @param {boolean} params.hasSyncViews - Whether synchronized views exist for the app. * @param {AdaptationProjectType|undefined} params.projectType - The project type. * @param {FlexUICapability | undefined} params.flexUICapability - The system type info (e.g., onPremise/UIFlex). * @returns {boolean} True if an extension project is allowed, otherwise false or undefined. */ export declare function showExtensionProjectQuestion({ isApplicationSelected, isApplicationSupported, hasSyncViews, projectType, flexUICapability }: { isApplicationSelected: boolean; isApplicationSupported: boolean; hasSyncViews: boolean; projectType?: AdaptationProjectType; flexUICapability?: FlexUICapability; }): boolean; /** * Determines if an internal question for ACH and FioriId will be shown based on the answers and specific conditions. * * @param {ConfigurationInfoAnswers} answers - The user-provided answers containing application details. * @param {boolean} isCustomerBase - Indicates whether the adaptation layer is CUSTOMER_BASE. * @param {boolean} isApplicationSupported - Whether the selected application is supported. * @returns {boolean | undefined} True if an internal question for ACH and FioriId question will be shown, otherwise false. */ export declare function showInternalQuestions(answers: ConfigAnswers, isCustomerBase: boolean, isApplicationSupported: boolean): boolean; /** * Determines if the business solution name question should be shown. * * @param {CfServicesAnswers} answers - The user-provided answers containing application details. * @param {boolean} isCFLoggedIn - A flag indicating whether the user is logged in to Cloud Foundry. * @param {boolean} showSolutionNamePrompt - A flag indicating whether the solution name prompt should be shown. * @param {string} businessService - The business service to be used. * @returns {boolean} True if the business solution name question should be shown, otherwise false. */ export declare function showBusinessSolutionNameQuestion(answers: CfServicesAnswers, isCFLoggedIn: boolean, showSolutionNamePrompt: boolean, businessService: string | undefined): boolean; /** * Determines if the base app prompt should be shown. * * @param {CfServicesAnswers} answers - The user-provided answers containing application details. * @param {boolean} isCFLoggedIn - A flag indicating whether the user is logged in to Cloud Foundry. * @param {CFApp[]} apps - The base apps available. * @returns {boolean} True if the base app prompt should be shown, otherwise false. */ export declare function shouldShowBaseAppPrompt(answers: CfServicesAnswers, isCFLoggedIn: boolean, apps: CFApp[]): boolean; /** * Determines if the store credentials question should be shown. * * @param {ConfigAnswers} answers - The user-provided answers containing credentials. * @param {boolean} isLoginSuccessful - A flag indicating that system login was successful. * @param {boolean} isAuthRequired - A flag indicating whether system authentication is needed. * @returns {boolean} True if the store credentials question should be shown. */ export declare function showStoreCredentialsQuestion(answers: ConfigAnswers, isLoginSuccessful: boolean, isAuthRequired: boolean): boolean; //# sourceMappingURL=conditions.d.ts.map