import type { AbapServiceProvider } from '@sap-ux/axios-extension'; import type { Logger } from '@sap-ux/logger'; import type { AbapDeployConfig } from '../types/index.js'; export type ValidationInputs = { appName: string; description: string; package: string; transport: string; client: string; url: string; destination: string; }; export type ValidationOutput = { summary: SummaryRecord[]; result: boolean; }; export type SummaryRecord = { message: string; status: SummaryStatus; }; export declare enum SummaryStatus { Valid = 0, Invalid = 1, Unknown = 2 } export declare const summaryMessage: { allClientCheckPass: string; adtServiceUndefined: string; packageCheckPass: string; packageNotFound: string; pacakgeAdtAccessError: string; transportCheckPass: string; transportNotFound: string; transportAdtAccessError: string; transportNotRequired: string; atoAdtAccessError: string; }; /** * Validation of deploy configuration before running deploy-test. * * @param config Deploy configuration that needs to be validated * @param provider AbapServiceProvider * @param logger Logger used by deploy tooling * @returns Validation result and a summary report of identified issues. */ export declare function validateBeforeDeploy(config: AbapDeployConfig, provider: AbapServiceProvider, logger: Logger): Promise; /** * Format a list of summary records that is ready to be printed on the console. * The reduce function makes sure a EOL is added at the beginning of the output. * * @param summary A list of summary records * @returns Formatted summary string */ export declare function formatSummary(summary: SummaryRecord[]): string; /** * Returns true if specified destination is on-premise and if environment is App Studio * to show additional info. * * @param destination Identifier for destination to be checked. * @returns Promise boolean. */ export declare function showAdditionalInfoForOnPrem(destination: string): Promise; /** * Validates if the credentials are required for the destination based on the Authentication type. * * @param destination Identifier for destination to be checked. * @param logger Logger from the calling context. * @returns Promise boolean. */ export declare function checkForCredentials(destination: string | undefined, logger: Logger): Promise; /** * Warns if the destination is configured as a full URL destination. * * @param destination Identifier for destination to be checked. * @param logger Logger from the calling context. */ export declare function warnOnFullUrlDestination(destination: string | undefined, logger: Logger): Promise; //# sourceMappingURL=validate.d.ts.map