import { Edge as SDKEdge, Vertex as SDKVertex, Doc as SDKDoc } from '../../common/types'; import { Edge as gRPCEdge, Vertex as gRPCVertex, Doc as gRPCDoc } from '@aitmed/protorepo/js/ecos/v1beta1/types_pb'; import deleteRequest from './deleteRequest'; export { toSDKVertex, toSDKEdge, toSDKDoc, generateEsak, encryptData, decryptData, deleteRequest, decryptDoc, encryptDoc }; declare function toSDKVertex(vertex: gRPCVertex): SDKVertex; declare function toSDKEdge(edge: gRPCEdge): SDKEdge; declare function toSDKDoc(doc: gRPCDoc): SDKDoc; /** * creates esak for an edge(either besak || eesak) */ declare function generateEsak(publicKey: any): Uint8Array; declare function encryptData(esak: Uint8Array | string, publicKey: string, data: Uint8Array): Promise; declare function encryptDoc(halfKey: Uint8Array | string, data: Uint8Array): Promise; declare function decryptData(esak: Uint8Array | string, publicKey: string, data: Uint8Array): Uint8Array; declare function decryptDoc(halfkey: Uint8Array | string, data: Uint8Array): Uint8Array;