import type { Environment } from "#environments/model"; import type { EnvironmentStatus } from "#environments/model"; import type { CommandExecutor, CommandResult, CommandSpec, RunOptions } from "#environments/executor"; export { contain } from "#environments/path-policy"; /** Concrete local/Warden/SSH command adapter selected once for a session. */ export declare class EnvironmentBackend implements CommandExecutor { #private; readonly environment: Environment; readonly localRoot: string; constructor(environment: Environment, localRoot: string); path(path: string): string; command(argv: string[], target?: string): CommandSpec; run(argv: string[], options?: RunOptions): Promise; /** Execute a pre-routed adapter command, used by automatic lifecycle probing. */ runCommand(spec: CommandSpec, options?: RunOptions): Promise; lifecycleCommand(action: "status" | "start" | "stop"): CommandSpec | undefined; status(onCommand?: (spec: CommandSpec, result: CommandResult) => void): Promise; start(): Promise; stop(): Promise; } /** `warden env ps --status running --services` prints one service per running container. */ export declare function wardenRunning(stdout: string): boolean;