/**
 * Cleans up old terminal sessions. Removes closed sessions older than 7 days
 * and trims to at most 1000 rows (keeping the most recent).
 * Active sessions (closed_at IS NULL) are never removed by the row limit.
 */
export declare function cleanupOldTerminalSessions(): number;
/**
 * Runs all database cleanup tasks: terminal sessions and command runs.
 */
export declare function runCleanup(): void;
/**
 * Starts the periodic cleanup job. Runs immediately on startup,
 * then every 6 hours.
 */
export declare function startCleanupJob(): void;
/**
 * Stops the periodic cleanup job.
 */
export declare function stopCleanupJob(): void;
//# sourceMappingURL=cleanup.d.ts.map