/// <reference types="node" />
export interface ExecOptions {
    env?: Record<string, string | undefined>;
    cwd?: string;
    output?(chunk: Buffer): void;
    printOutput?: boolean;
}
export declare function exec(command: string, args: string[], { env, cwd, output, printOutput }?: ExecOptions): Promise<number | null>;
export declare namespace exec {
    var run: (command: string, args: string[], options?: ExecOptions) => Promise<string>;
}
export declare class ExecError extends Error {
    readonly code: number | null;
    constructor(code: number | null, error: any);
}
//# sourceMappingURL=exec.d.ts.map