"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Graph = void 0;
const index_1 = require("./index");
class Graph {
    constructor(environment) {
        this.handle = index_1.graphsdkModule.initializeGraphState(environment);
    }
    getGraphHandle() {
        return this.handle;
    }
    getGraphConfig(environment) {
        return index_1.graphsdkModule.getGraphConfig(environment);
    }
    getSchemaIdFromConfig(environment, connectionType, privacyType) {
        return index_1.graphsdkModule.getSchemaIdFromConfig(environment, connectionType, privacyType);
    }
    getGraphStatesCount() {
        return index_1.graphsdkModule.getGraphStatesCount();
    }
    containsUserGraph(dsnpUserId) {
        return index_1.graphsdkModule.containsUserGraph(this.handle, dsnpUserId);
    }
    getGraphUsersCount() {
        return index_1.graphsdkModule.getGraphUsersCount(this.handle);
    }
    removeUserGraph(dsnpUserId) {
        return index_1.graphsdkModule.removeUserGraph(this.handle, dsnpUserId);
    }
    importUserData(payload) {
        return index_1.graphsdkModule.importUserData(this.handle, payload);
    }
    exportUpdates() {
        return index_1.graphsdkModule.exportUpdates(this.handle);
    }
    getConnectionsForUserGraph(dsnpUserId, schemaId, includePending) {
        return index_1.graphsdkModule.getConnectionsForUserGraph(this.handle, dsnpUserId, schemaId, includePending);
    }
    applyActions(actions) {
        return index_1.graphsdkModule.applyActions(this.handle, actions);
    }
    forceCalculateGraphs(dsnpUserId) {
        return index_1.graphsdkModule.forceCalculateGraphs(this.handle, dsnpUserId);
    }
    getConnectionsWithoutKeys() {
        return index_1.graphsdkModule.getConnectionsWithoutKeys(this.handle);
    }
    getOneSidedPrivateFriendshipConnections(dsnpUserId) {
        return index_1.graphsdkModule.getOneSidedPrivateFriendshipConnections(this.handle, dsnpUserId);
    }
    getPublicKeys(dsnpUserId) {
        return index_1.graphsdkModule.getPublicKeys(this.handle, dsnpUserId);
    }
    static deserializeDsnpKeys(keys) {
        return index_1.graphsdkModule.deserializeDsnpKeys(keys);
    }
    static generateKeyPair(keyType) {
        return index_1.graphsdkModule.generateKeyPair(keyType);
    }
    freeGraphState() {
        return index_1.graphsdkModule.freeGraphState(this.handle);
    }
    printHelloGraph() {
        console.log(index_1.graphsdkModule.printHelloGraph());
    }
}
exports.Graph = Graph;
//# sourceMappingURL=graph.js.map