import { OrgDaemon, type RunningOrg } from './daemon.js'; import type { OrgRole } from './types.js'; /** Start an offline org in the background so queued messages get drained. * Fire-and-forget — errors are logged but don't propagate to the sender. */ export declare function autoWake(daemon: OrgDaemon, name: string): void; /** #4: bounded whole-org restart after the boss terminally crashes. Stops the * dead run and re-launches it with fresh sessions (shedding any bloated * context). Capped at MAX_BOSS_RESTARTS per explicit start so a crashing boss * can't loop forever; beyond the cap it gives up and lets the idle watchdog * shut the run down for a human. */ export declare function scheduleBossRestart(daemon: OrgDaemon, name: string): void; /** A role that failed its resource gate at boot isn't abandoned — keep polling * for capacity in the background (bounded) and spawn it the moment resources * free up, instead of silently running the org shorthanded for its whole life. * Bails quietly if the org is stopped (or restarted under the same name) * before capacity returns; `running` is compared by identity, not `name`, * so a stale retry can never spawn into a different run. */ export declare function scheduleDeferredSpawn(daemon: OrgDaemon, name: string, running: RunningOrg, role: OrgRole, spawnRole: (role: OrgRole) => void): void; //# sourceMappingURL=scheduler-integration.d.ts.map