///
import { InstanceID } from "@dedis/cothority/byzcoin";
import { LongTermSecret, Write } from "@dedis/cothority/calypso";
import { Darc } from "@dedis/cothority/darc";
import { Point } from "@dedis/kyber";
import { CredentialInstanceMapBS } from "./credentialStructBS";
import { KeyPair } from "./keypair";
import { SpawnerTransactionBuilder } from "./spawnerTransactionBuilder";
export declare class Calypso {
lts: LongTermSecret;
private signerID;
cim: CredentialInstanceMapBS;
static spawnDarc(tx: SpawnerTransactionBuilder, desc: string, evolve: InstanceID, read?: Buffer, del?: Buffer, update?: Buffer): Darc;
constructor(lts: LongTermSecret, signerID: InstanceID, cim: CredentialInstanceMapBS);
addFile(tx: SpawnerTransactionBuilder, darcID: InstanceID, name: string, data: Buffer): InstanceID;
rmFile(tx: SpawnerTransactionBuilder, name: string): void;
getFile(tx: SpawnerTransactionBuilder, wrID: Buffer, kp?: KeyPair): Promise;
hasAccess(wrID: Buffer): Promise;
}
export declare class CalypsoData {
static readonly algo = "aes-192-gcm";
static encrypt(lts: ILTSIDX, darcID: InstanceID, data: Buffer, extradata?: Buffer, key?: Buffer): Write;
static decrypt(wr: Write, key: Buffer): Buffer;
}
export interface ILTSIDX {
id: Buffer;
X: Point;
}