import type { Key, KeyJWK, PublicKey, PrivateKey, KeyPair, PublicKeyJWK, PrivateKeyJWK, KeyPairJWK, JWK } from '../types.js'; declare function keyToJWK(key: Key): KeyJWK; /** * The returned buffers are guaranteed to unpooled. * This means the underlying `ArrayBuffer` is safely transferrable. */ declare function keyFromJWK(keyJWK: JWK): Key | undefined; declare function publicKeyToJWK(publicKey: PublicKey): PublicKeyJWK; /** * The returned buffers are guaranteed to unpooled. * This means the underlying `ArrayBuffer` is safely transferrable. */ declare function publicKeyFromJWK(publicKeyJWK: JWK): PublicKey | undefined; declare function privateKeyToJWK(privateKey: PrivateKey): PrivateKeyJWK; /** * Extracts private key out of JWK. * This checks if the public key matches the private key in the JWK. * The returned buffers are guaranteed to unpooled. * This means the underlying `ArrayBuffer` is safely transferrable. */ declare function privateKeyFromJWK(privateKeyJWK: JWK): PrivateKey | undefined; declare function keyPairToJWK(keyPair: { publicKey: PublicKey; privateKey: PrivateKey; }): KeyPairJWK; /** * The returned buffers is guaranteed to unpooled. * This means the underlying `ArrayBuffer` is safely transferrable. */ declare function keyPairFromJWK(keyPair: KeyPairJWK): KeyPair | undefined; export { keyToJWK, keyFromJWK, publicKeyToJWK, publicKeyFromJWK, privateKeyToJWK, privateKeyFromJWK, keyPairToJWK, keyPairFromJWK, };