import { createSSHSession } from "./createSSHSession.js";
export class SSHSessionManager {
    sessions = new Map();
    create(host) {
        const session = createSSHSession(host);
        this.sessions.set(session.id, session);
        return session;
    }
    list() {
        return [...this.sessions.values()];
    }
    close(id) {
        const session = this.sessions.get(id);
        if (session)
            session.status = "closed";
    }
}
