/**
 * Session Manager
 *
 * Centralizes all direct access to the global `state` and session initialization logic.
 * Eliminates redundant state checks across hooks and handlers.
 */
/**
 * Ensures a local session object exists in the plugin context map.
 * This is "Session State 1" (Plugin-local tracking).
 */
export declare function ensureSessionInitialized(sessions: Map<string, any>, sessionID: string): any;
/**
 * Activates the global mission state for a specific session.
 * This is "Session State 2" (Global Orchestrator State).
 */
export declare function activateMissionState(sessionID: string): void;
/**
 * Checks if the mission is globally active and the session is enabled.
 */
export declare function isMissionActive(sessionID: string): boolean;
/**
 * Deactivates mission state (e.g., on cancellation or error).
 */
export declare function deactivateMissionState(sessionID: string): void;
/**
 * Updates token usage and estimated cost for a session.
 */
export declare function updateSessionTokens(sessions: Map<string, any>, sessionID: string, inputLen: number, outputLen: number): void;
/**
 * Anomaly Management
 */
export declare function recordAnomaly(sessionID: string): number;
export declare function resetAnomaly(sessionID: string): void;
/**
 * Task Tracking
 */
export declare function updateCurrentTask(sessionID: string, taskID: string): void;
