import { resolveClusterFromConnection } from './types';
import { corePlugins } from './plugins/corePlugins';
export class Metaplex {
    constructor(connection, options = {}) {
        var _a;
        this.connection = connection;
        this.cluster = (_a = options.cluster) !== null && _a !== void 0 ? _a : resolveClusterFromConnection(connection);
        this.use(corePlugins());
    }
    static make(connection, options = {}) {
        return new this(connection, options);
    }
    use(plugin) {
        plugin.install(this);
        return this;
    }
}
//# sourceMappingURL=Metaplex.js.map