import type { PersistentBackendTarget, SessionProbe } from '../adapters/backend/types.js'; export interface SessionListWakeRequestContext { signal: AbortSignal; deadlineMs: number; } export type SessionListWakeRequest = (context: SessionListWakeRequestContext) => Promise<{ ok: true; } | { ok: false; error: string; }>; export type SessionListWakeResult = { ok: true; } | { ok: false; error: string; lastProbe?: SessionProbe; }; export declare function canWakeDormantBackendForAttach(input: { isAdopt: boolean; probe: SessionProbe; realManagedSession: boolean; attachBackend?: 'tmux' | 'zmx'; target?: PersistentBackendTarget; }): boolean; /** * Ask the owning daemon to materialize a dormant session, then wait until its * exact persistent backend target is attachable. The daemon request is the * concurrency fence; this helper only observes the backing target afterwards. */ export declare function wakeDormantBackendForAttach(options: { target: PersistentBackendTarget; wake: SessionListWakeRequest; probe: (target: PersistentBackendTarget) => SessionProbe; timeoutMs?: number; pollIntervalMs?: number; sleep?: (ms: number) => Promise; signal?: AbortSignal; now?: () => number; }): Promise; //# sourceMappingURL=session-list-wake.d.ts.map