/**
 * Ensures a local session object exists in the plugin context map.
 * Now WITH disk-based rehydration for robustness.
 */
export declare function ensureSessionInitialized(sessions: Map<string, any>, sessionID: string, directory?: string): any;
/**
 * Activates the global mission state for a specific session.
 */
export declare function activateMissionState(sessionID: string): void;
/**
 * Checks if the mission is globally active and the session is enabled.
 * CROSS-CHECK: Will return true if disk state confirms mission, even if in-memory 'missionActive' flag reset.
 */
export declare function isMissionActive(sessionID: string, directory?: 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;
