import { EncryptedData } from '../core/message/RPCMessage.js'; import { RPCRequest } from '../core/message/RPCRequest.js'; import { RPCResponse } from '../core/message/RPCResponse.js'; export declare function generateKeyPair(): Promise; export declare function deriveSharedSecret(ownPrivateKey: CryptoKey, peerPublicKey: CryptoKey): Promise; export declare function encrypt(sharedSecret: CryptoKey, plainText: string): Promise; export declare function decrypt(sharedSecret: CryptoKey, { iv, cipherText }: EncryptedData): Promise; export declare function exportKeyToHexString(type: 'public' | 'private', key: CryptoKey): Promise; export declare function importKeyFromHexString(type: 'public' | 'private', hexString: string): Promise; export declare function encryptContent(content: RPCRequest | RPCResponse, sharedSecret: CryptoKey): Promise; export declare function decryptContent(encryptedData: EncryptedData, sharedSecret: CryptoKey): Promise; //# sourceMappingURL=cipher.d.ts.map