import type { ExecResult } from "./interface";
import type { LibraryConfig } from "../../../lib.js";
import type { SpawnOptions } from "child_process";
/**
 * This function should never return a rejected promise: errors should be
 * mapped to a non-zero exit code and the error message should be in stderr.
 */
export declare function exec(command: Array<string>, options: SpawnOptions, config: LibraryConfig, abortSignal?: AbortSignal): Promise<ExecResult>;
