import type { ParsedAnswers, Questionnair } from '../types.js'; export declare function runConfigCommand(parsedAnswers: ParsedAnswers, npmTag: string, yes?: boolean): Promise; /** * Helper utility used in `run` and `install` command to create config if none exist * @param {string} command to be executed by user * @param {string} configPath the path to a wdio.conf.[js/ts] file * @param {Function} runConfigCmd runConfig method to be replaceable for unit testing */ export declare function missingConfigurationPrompt(command: string, configPath: string, runConfigCmd?: Function): Promise; /** * Resolve where the generated WDIO TypeScript config should live. * Never overwrite an existing root `tsconfig.json` — when that would happen * (for example a direct-child spec glob like `e2e/*.ts`), fall back to a * dedicated `tsconfig.e2e.json` / `tsconfig.wdio.json`. */ export declare function resolveTsConfigFilePath({ projectRootDir, hasRootTSConfig, specs, runnerShort }: { projectRootDir: string; hasRootTSConfig: boolean; specs?: string; runnerShort: string; }): string; export declare const parseAnswers: (yes: boolean, flagAnswers?: Partial) => Promise; /** * Helper utility used in `run` and `install` command to check whether a config file currently exists * @param configPathNoExtension the file path to the WDIO config file without extension * @param configPath the file path to the WDIO config file that is checked first if set * @returns {string} the path to the config file that exists, otherwise undefined */ export declare function canAccessConfigPath(configPathNoExtension: string, configPath?: string): Promise; //# sourceMappingURL=utils.d.ts.map