/**
 * Repository for terminal session tracking.
 */
export interface TerminalSession {
    terminal_id: string;
    project_id: string;
    pid: number | null;
    created_at: string;
    closed_at: string | null;
}
/**
 * Creates a new terminal session with a generated UUID.
 */
export declare function createTerminalSession(projectId: string, pid?: number): TerminalSession;
/**
 * Returns a terminal session by ID, or null if not found.
 */
export declare function getTerminalSession(terminalId: string): TerminalSession | null;
/**
 * Lists active (unclosed) terminal sessions.
 * Optionally filters by project ID.
 */
export declare function listActiveSessions(projectId?: string): TerminalSession[];
/**
 * Marks a terminal session as closed by setting closed_at to the current timestamp.
 */
export declare function closeTerminalSession(terminalId: string): void;
//# sourceMappingURL=terminal-sessions.d.ts.map