import { NeuroLink } from "../neurolink.js";
import type { ConversationMemoryConfig } from "../types/conversation.js";
type SessionVariableValue = string | number | boolean;
type LoopSessionState = {
    neurolinkInstance: NeuroLink;
    sessionId: string;
    isActive: boolean;
    conversationMemoryConfig?: ConversationMemoryConfig;
    sessionVariables: Record<string, SessionVariableValue>;
};
export declare class GlobalSessionManager {
    private static instance;
    private loopSession;
    static getInstance(): GlobalSessionManager;
    setLoopSession(config?: ConversationMemoryConfig): string;
    /**
     * Restore a loop session with an existing sessionId and NeuroLink instance
     * Used for conversation restoration
     */
    restoreLoopSession(sessionId: string, neurolinkInstance: NeuroLink, config?: ConversationMemoryConfig, sessionVariables?: Record<string, SessionVariableValue>): void;
    /**
     * Update session variables during restoration
     */
    restoreSessionVariables(variables: Record<string, SessionVariableValue>): void;
    /**
     * Check if a session is currently active
     */
    hasActiveSession(): boolean;
    /**
     * Get current session metadata for restoration purposes
     */
    getSessionMetadata(): {
        sessionId?: string;
        conversationMemoryConfig?: ConversationMemoryConfig;
        sessionVariables: Record<string, SessionVariableValue>;
        isActive: boolean;
    };
    /**
     * Update the sessionId of the current session (used during restoration)
     */
    updateSessionId(newSessionId: string): void;
    getLoopSession(): LoopSessionState | null;
    clearLoopSession(): void;
    getOrCreateNeuroLink(): NeuroLink;
    getCurrentSessionId(): string | undefined;
    setSessionVariable(key: string, value: SessionVariableValue): void;
    getSessionVariable(key: string): SessionVariableValue | undefined;
    getSessionVariables(): Record<string, SessionVariableValue>;
    unsetSessionVariable(key: string): boolean;
    clearSessionVariables(): void;
}
export declare const globalSession: GlobalSessionManager;
export {};
