import type { ODataVersion } from '@sap-ux/project-access'; import type { FioriOptions, LaunchConfig, LaunchConfigEnv } from '../types/index.js'; import yargsParser from 'yargs-parser'; /** * Returns index number from argument in array of arguments. * * @param args - array of argument strings. * @param arg - argument to find. * @returns launch config options. */ export declare function getIndexOfArgument(args: Array, arg: string): number; /** * Merges the new and the existing cli arguments of a run configuration. * * @param newArgs new cli arguments specified in the run config wizard. * @param oldArgs existing cli arguments of a run configuration. * @returns merged launch config arguments. */ export declare function mergeArgs(newArgs: string[] | undefined, oldArgs: string[] | undefined): string[]; /** * Returns the launch config object. * * @param name - name of the launch config. * @param cwd - working directory of the application to run with launch config. * @param runtimeArgs - arguments passed to the runtime executable. * @param args - JSON array of command-line arguments to pass to the application. * @param env - environment variables for the application. * @returns launch config object. */ export declare function getLaunchConfig(name: string, cwd: string, runtimeArgs: string[], args: string[] | undefined, env: LaunchConfigEnv): LaunchConfig; /** * Returns Fiori Options from Launch Configuration object. * * @param launchConfig - Launch Configuration. * @param launchJSONRootPath - workspace root folder for Launch Configuration where .vscode/launch.json is. * @param oDataVersion - OData version of the application V2/V4. * @returns Fiori Options of the launch config. */ export declare function getFioriOptions(launchConfig: LaunchConfig, launchJSONRootPath: string, oDataVersion: ODataVersion): FioriOptions; /** * Generates a new launch config from passed Fiori options. * * @param rootFolder - workspace root folder. * @param options - the variable part of the launch config. * @returns launch config. */ export declare function generateNewFioriLaunchConfig(rootFolder: string, options: FioriOptions): LaunchConfig; /** * Parses the list of cli arguments. * * @param args list of cli arguments in array. * @returns parsed arguments. */ export declare function parseArguments(args: string[]): yargsParser.Arguments; //# sourceMappingURL=utils.d.ts.map