/** * Shared storage configuration for all modes */ export declare const MCP_DIR: string; export declare const ACTIVE_DIR: string; export declare const INACTIVE_DIR: string; export declare const LOG_FILE: string; /** * Ensure the storage directory exists */ export declare function ensureStorageExists(): void; /** * Get session IDs for a specific project directory (LIVE SESSIONS ONLY) * @param projectDir The project directory to filter by * @param liveOnly If true, only return currently active sessions (default: true) * @returns Array of session IDs for this project (most recent first) */ export declare function getSessionIdsForProject(projectDir: string, liveOnly?: boolean): string[]; /** * Get all session log files sorted by modification time (most recent first) * @param limit Optional limit on number of files to return * @param projectDir Optional project directory to filter by * @param liveOnly If true, only return active sessions (default: true) * @returns Array of full file paths */ export declare function getSessionLogFiles(limit?: number, projectDir?: string, liveOnly?: boolean): string[]; /** * Get the most recently used project directory from the master index * @returns The project directory of the most recent session, or null if none found */ export declare function getMostRecentProjectDir(): string | null; /** * Get the most recently used project directory from ACTIVE sessions only * This reads from active-sessions.json instead of the master index * @returns The project directory of the most recent active session, or null if none found */ export declare function getMostRecentActiveProjectDir(): string | null; /** * Read last N lines from multiple session files (LIVE SESSIONS ONLY) * @param totalLines Total number of lines to read across all files * @param maxFiles Maximum number of session files to read * @param projectDir Optional project directory to filter by (defaults to most recent project) * @param liveOnly If true, only read from active sessions (default: true) * @returns Combined log content, prioritizing most recent sessions */ export declare function readRecentLogs(totalLines: number, maxFiles?: number, projectDir?: string, liveOnly?: boolean): string; //# sourceMappingURL=storage.d.ts.map