export declare const CURVE = "P-256"; export declare function generateEphemeral(): Promise; export declare function generateRecipient(): Promise; export declare function importPublic(raw: Uint8Array): Promise; export declare function exportPublic(key: CryptoKey): Promise; /** * The shared AES-GCM key, from one side's private key and the other's public. * * HKDF rather than the raw ECDH output: WebCrypto's `deriveKey` for ECDH hands * back the x-coordinate of the shared point with no key derivation applied, * which is usable but is not what anyone wants to be defending later. `info` * binds both public keys into the derivation, so a shared secret can only ever * produce a key for the pair it actually belongs to. */ export declare function sharedKey(privateKey: CryptoKey, publicKey: CryptoKey, recipientRaw: Uint8Array, epkRaw: Uint8Array, usages: KeyUsage[]): Promise; //# sourceMappingURL=derive.d.ts.map