///
import { ExecResult, ExitCode } from './createExecute';
import { KeyMap } from './keyToHEx';
export declare type SpawnResult = {
wait: (delay: number) => Promise;
waitForText: (output: string) => Promise<{
line: string;
type: 'stdout' | 'stderr';
}>;
waitForFinish: () => Promise;
writeText: (input: string) => Promise;
getStdout: () => string[];
getStderr: () => string[];
getExitCode: () => null | ExitCode;
kill: (signal: NodeJS.Signals) => void;
debug: () => void;
pressKey: (input: KeyMap) => Promise;
};
export declare type CLITestEnvironment = {
path: string;
cleanup: () => Promise;
writeFile: (path: string, content: string) => Promise;
readFile: (path: string) => Promise;
removeFile: (path: string) => Promise;
removeDir: (path: string) => Promise;
ls: (path?: string) => Promise;
exists: (path: string) => Promise;
makeDir: (path: string) => Promise;
execute: (runner: string, command: string, runFrom?: string) => Promise;
spawn: (runner: string, command: string, runFrom?: string) => Promise;
};