/** * Lightweight session existence verifier. * * Provides secondary existence verification via `client.session.get()`. * The legacy `checkSession()` status-map polling and `clearTask()` lifecycle * tracking have been removed — those responsibilities moved to the * event-driven dispatch pipeline. * * This module is read-only: it does NOT modify task state, * abort sessions, or interact with the manager/poller directly. */ import type { ISessionClient } from "../../platform/ports/session-client.ts"; /** * Result of a session existence check. * * Retained for backward compatibility — the `active` / `gone` / `uncertain` / * `present_idle` variants were previously produced by the now-removed * `checkSession()` method. External consumers may still reference this type. */ export interface SessionMonitorResult { type: "active" | "gone" | "uncertain" | "present_idle"; /** The raw status object from the map when present, undefined when absent */ status?: { type: string; }; } export declare class SessionMonitor { /** * Secondary existence verification using `client.session.get()`. * * Called when the event-driven pipeline detects a session may have * disappeared. Uses the SDK directly to confirm whether the session * truly no longer exists. * * @param client The session client (ISessionClient) * @param sessionId The session ID to verify * @returns * - `"exists"`: session.get returned data (session still alive) * - `"missing"`: 404 or not-found error (session deleted) * - `"unknown"`: network error, unexpected response, can't determine */ verifyExistence(client: ISessionClient, sessionId: string): Promise<"exists" | "missing" | "unknown">; } //# sourceMappingURL=session-monitor.d.ts.map