///
import { ExecOptions as ChildProcessExecOptions } from 'child_process';
export declare type Opt = T | null | undefined;
export declare enum BinarySource {
Auto = "auto",
Docker = "docker",
Global = "global"
}
export interface ExecConfig {
binarySource: Opt;
dockerUser: Opt;
localDir: Opt;
cacheDir: Opt;
}
export declare type VolumesPair = [string, string];
export declare type VolumeOption = Opt;
export declare type DockerExtraCommand = Opt;
export declare type DockerExtraCommands = Opt;
export interface DockerOptions {
image: string;
tag?: Opt;
tagScheme?: Opt;
tagConstraint?: Opt;
volumes?: Opt;
envVars?: Opt[]>;
cwd?: Opt;
preCommands?: DockerExtraCommands;
postCommands?: DockerExtraCommands;
}
export interface RawExecOptions extends ChildProcessExecOptions {
encoding: string;
}
export interface ExecResult {
stdout: string;
stderr: string;
}
export declare const rawExec: (cmd: string, opts: RawExecOptions) => Promise;