import type { DreamuxEnvironment } from '@excitedjs/dreamux-types'; export declare const DISPATCHER_APP_SERVER_SOCKET_PATH_MAX_BYTES = 103; export interface DispatcherCodexHomeDoctorContext { dispatcherId: string; codexHome: string; configPath: string; /** * A representative socket allocation (issue #182: sockets are random per * start, so this is a sample of the policy, not the path a runtime will * bind). Doctor checks placement (never shared /tmp) and the path budget. An * empty string skips the socket checks (no host candidate dirs were supplied). */ socketPath: string; } export interface DispatcherCodexHomeDoctorResult { ok: boolean; errors: string[]; context: DispatcherCodexHomeDoctorContext; } interface DoctorContextOptions { /** Representative socket sample (from the path context's `runtimeSocketDirs()`). */ socketPath?: string; } interface DoctorOptions { env: DreamuxEnvironment; } /** * Build the doctor context for a runtime, from the same env its Codex child * would actually spawn with — a per-agent `CODEX_HOME` override in * `extra_env` must be reflected here too, not just in the runtime's own spawn * path. Pass `paths.ts`'s `codexSpawnEnv` result, not the ambient diagnostic * env. */ export declare function dispatcherCodexHomeDoctorContext(dispatcherId: string, env: DreamuxEnvironment, options?: DoctorContextOptions): DispatcherCodexHomeDoctorContext; export declare function validateDispatcherCodexHome(input: DispatcherCodexHomeDoctorContext, options: DoctorOptions): Promise; export {}; //# sourceMappingURL=codex-home.d.ts.map