import type { BotConfig } from "../../config/config.js"; import type { AcpRuntime, AcpRuntimeHandle } from "../runtime/types.js"; import { type AcpCloseSessionInput, type AcpCloseSessionResult, type AcpInitializeSessionInput, type AcpManagerObservabilitySnapshot, type AcpRunTurnInput, type AcpSessionManagerDeps, type AcpSessionResolution, type AcpSessionRuntimeOptions, type AcpSessionStatus, type AcpStartupIdentityReconcileResult, type SessionAcpMeta } from "./manager.types.js"; export declare class AcpSessionManager { private readonly deps; private readonly actorQueue; private readonly actorTailBySession; private readonly runtimeCache; private readonly activeTurnBySession; private readonly turnLatencyStats; private readonly errorCountsByCode; private evictedRuntimeCount; private lastEvictedAt; constructor(deps?: AcpSessionManagerDeps); resolveSession(params: { cfg: BotConfig; sessionKey: string; }): AcpSessionResolution; getObservabilitySnapshot(cfg: BotConfig): AcpManagerObservabilitySnapshot; reconcilePendingSessionIdentities(params: { cfg: BotConfig; }): Promise; initializeSession(input: AcpInitializeSessionInput): Promise<{ runtime: AcpRuntime; handle: AcpRuntimeHandle; meta: SessionAcpMeta; }>; getSessionStatus(params: { cfg: BotConfig; sessionKey: string; signal?: AbortSignal; }): Promise; setSessionRuntimeMode(params: { cfg: BotConfig; sessionKey: string; runtimeMode: string; }): Promise; setSessionConfigOption(params: { cfg: BotConfig; sessionKey: string; key: string; value: string; }): Promise; updateSessionRuntimeOptions(params: { cfg: BotConfig; sessionKey: string; patch: Partial; }): Promise; resetSessionRuntimeOptions(params: { cfg: BotConfig; sessionKey: string; }): Promise; runTurn(input: AcpRunTurnInput): Promise; cancelSession(params: { cfg: BotConfig; sessionKey: string; reason?: string; }): Promise; closeSession(input: AcpCloseSessionInput): Promise; private ensureRuntimeHandle; private persistRuntimeOptions; private enforceConcurrentSessionLimit; private recordTurnCompletion; private recordErrorCode; private evictIdleRuntimeHandles; private resolveRuntimeCapabilities; private applyRuntimeControls; private setSessionState; private reconcileRuntimeSessionIdentifiers; private writeSessionMeta; private withSessionActor; private throwIfAborted; private getCachedRuntimeState; private setCachedRuntimeState; private clearCachedRuntimeState; }