import type { DbSession, UpsertSessionInput } from './schema.js'; /** * Get a session by name */ export declare function getSession(name: string): DbSession | null; /** * Get all active (non-archived) sessions */ export declare function getAllSessions(): DbSession[]; /** * Get all archived sessions */ export declare function getArchivedSessions(): DbSession[]; /** * Upsert a session (insert or update) */ export declare function upsertSession(name: string, input: UpsertSessionInput): DbSession; /** * Delete a session */ export declare function deleteSession(name: string): boolean; /** * Archive a session (mark as done and keep in history) * Returns the archived session or null if not found */ export declare function archiveSession(name: string): DbSession | null; /** * Reconcile sessions with active tmux sessions * - Sessions in DB but not in tmux: delete if old * - Sessions in tmux but not in DB: will be created when they connect * - Archived sessions are skipped (they don't have tmux sessions) */ export declare function reconcileWithTmux(activeTmuxSessions: Set): void; //# sourceMappingURL=sessions.d.ts.map