import { C as Connection } from './index.js';

class Log {
    constructor(connection) {
        this.connection = connection;
    }
    async list() {
        return this.connection.get("log");
    }
    static open(url, key) {
        const connection = Connection.open(url, key);
        return connection && new Log(connection);
    }
}

export { Log };
