import type { ExecRequest, ExecResult, ExecShell, OpContext } from "../types.ts";
import { type ScopeRegistry } from "./scopes.ts";
export declare function curatedEnv(source?: NodeJS.ProcessEnv): Record<string, string>;
export declare function defaultShell(): ExecShell;
export interface ExecDependencies {
    /** Absent: no scope token is recorded, nothing is written to disk and the child environment gets no entry. */
    readonly scopes: ScopeRegistry | undefined;
    readonly killTree: (pid: number) => void;
}
/**
 * Run one command in its own process group (with a scope token when a registry is configured), capped capture, a
 * timeout and abort. Abort and timeout kill the whole group and settle the result (`aborted` / `timedOut`) instead of
 * rejecting.
 */
export declare function runExec(req: ExecRequest, ctx: OpContext, deps: ExecDependencies): Promise<ExecResult>;
/** POSIX: SIGKILL the group, falling back to the leader; Windows: terminate the process. */
export declare function defaultKillTree(pid: number): void;
//# sourceMappingURL=exec.d.ts.map