import type { MonitorConfig, ResolvedRole, SessionBackendId } from './config.js'; import type { AgentLaunchConfiguration } from './lifecycle-summary.js'; import type { SpawnOpts } from './spawn.js'; /** Present only inside a managed role process. The CLI treats it as a routing hint, not authority. */ export declare const FLEET_PROXY_STATE_DIR_ENV = "OURS_FLEET_PROXY_STATE_DIR"; export declare const FLEET_PROXY_CALLER_ENV = "OURS_FLEET_PROXY_CALLER"; export interface ManagedFleetSpawnResult { caller: string; role: string; lifetime: 'permanent' | 'temporary'; statePath: string; harness: string; session: SessionBackendId; model?: string; monitor: Pick; /** Adapter-resolved portable policy and exact native runtime mode. */ permissionMode?: { fleetMode: 'ask' | 'auto' | 'allow'; nativeMode: string; }; inherited: string[]; creationActionId: string; brainSummary: string; roleSummary: string; /** Launch configuration captured from the exact resolved role; absent only from pre-upgrade daemons. */ configuration?: AgentLaunchConfiguration; } /** * Fill only omitted spawn settings from the live caller. Explicit agent choices * always win. This is convenience attribution, not an authorization boundary. */ export declare function inheritCallerSpawnDefaults(caller: ResolvedRole, requested: SpawnOpts, configPath: string | undefined): { options: SpawnOpts; inherited: string[]; };