import type { VisionContext, VisionEnv } from "./core/env.js"; /** The environment a program is started with: names to values; a name with no value is left out. */ export type ChildEnv = Readonly>; /** What a program gets of this process's environment by default, read when it is called. A host that wants a program * to have more passes `{ ...inheritedEnv(), NAME: value }`. */ export declare function inheritedEnv(): Record; /** The environment of the programs a host's option names: the host's as it is, else the default. */ export declare const childEnvOf: (env: ChildEnv | undefined) => Record; type ExecOptions = NonNullable[1]>; /** The Node port: a `VisionEnv` whose `exec` also takes pi's `inheritEnv`. A call that says `inheritEnv: false` names * the program's whole environment in its own `env`. */ export type NodeVisionEnv = Omit & { exec(command: Parameters[0], options: (ExecOptions & { inheritEnv?: boolean; }) | undefined, context: VisionContext): ReturnType; }; /** `env` is the whole environment of every program this environment starts; without it, `inheritedEnv()`. A call's own * `env` is added over either, and is the whole of it when the call says `inheritEnv: false`. */ export declare function nodeVisionEnv(options: { cwd: string; env?: ChildEnv; }): NodeVisionEnv; export {};