import { ImportBundle, Update, DsnpGraphEdge, Action, DsnpPublicKey, DsnpKeys, Config, ConnectionType, PrivacyType, GraphKeyPair } from "./models";
import { EnvironmentInterface } from "./models/environment";
export declare class Graph {
    private handle;
    constructor(environment: EnvironmentInterface, capacity?: number);
    getGraphHandle(): number;
    getGraphConfig(environment: EnvironmentInterface): Promise<Config>;
    getSchemaIdFromConfig(environment: EnvironmentInterface, connectionType: ConnectionType, privacyType: PrivacyType): Promise<number>;
    getGraphCapacity(): Promise<number>;
    getGraphStatesCount(): Promise<number>;
    containsUserGraph(dsnpUserId: number): Promise<boolean>;
    getGraphUsersCount(): Promise<number>;
    removeUserGraph(dsnpUserId: number): Promise<boolean>;
    importUserData(payload: ImportBundle[]): Promise<boolean>;
    exportUpdates(): Promise<Update[]>;
    getConnectionsForUserGraph(dsnpUserId: number, schemaId: number, includePending: boolean): Promise<DsnpGraphEdge[]>;
    applyActions(actions: Action[]): Promise<boolean>;
    forceCalculateGraphs(dsnpUserId: number): Promise<Update[]>;
    getConnectionsWithoutKeys(): Promise<number[]>;
    getOneSidedPrivateFriendshipConnections(dsnpUserId: number): Promise<DsnpGraphEdge[]>;
    getPublicKeys(dsnpUserId: number): Promise<DsnpPublicKey[]>;
    static deserializeDsnpKeys(keys: DsnpKeys): Promise<DsnpPublicKey[]>;
    static generateKeyPair(keyType: number): Promise<GraphKeyPair>;
    freeGraphState(): Promise<boolean>;
    printHelloGraph(): void;
}
//# sourceMappingURL=graph.d.ts.map