import { type RoleCheckpoint } from './checkpoint.js'; import { OrgDaemon } from './daemon.js'; import type { AgentRuntime, RunningOrg } from './daemon-types.js'; import { type OrgRole } from './types.js'; /** Build one role incarnation: mailbox, policy, AgentRuntime, sessionOpts, * and the supervised crash-retry loop. Used by BOTH the startup lazy-spawn * path (generation 0, via the `spawnRole` closure inside startOrgInner) * and respawnRole() (generation N+1). Does not touch running.agents or * running.roleSlots — callers publish the result themselves. */ export declare function spawnRoleIncarnation(daemon: OrgDaemon, name: string, running: RunningOrg, role: OrgRole, generation: number, opts?: { roleCheckpoint?: RoleCheckpoint; abort?: AbortController; budgetTokensOverride?: number; }): { runtime: AgentRuntime; abort: AbortController; }; //# sourceMappingURL=role-incarnation.d.ts.map