import type { PublicKey, PrivateKey, KeyPair, PublicKeyPEM, PrivateKeyPEM, KeyPairPEM } from '../types.js'; /** * Converts PublicKey to SPKI PEM format. * SPKI is "SubjectPublicKeyInfo" which is used in certificates. * This format is based on ASN.1 DER encoding. */ declare function publicKeyToPEM(publicKey: PublicKey): PublicKeyPEM; /** * The returned buffers is guaranteed to unpooled. * This means the underlying `ArrayBuffer` is safely transferrable. */ declare function publicKeyFromPEM(publicKeyPEM: PublicKeyPEM): PublicKey | undefined; declare function privateKeyToPEM(privateKey: PrivateKey): PrivateKeyPEM; /** * The returned buffers is guaranteed to unpooled. * This means the underlying `ArrayBuffer` is safely transferrable. */ declare function privateKeyFromPEM(privateKeyPEM: PrivateKeyPEM): PrivateKey | undefined; declare function keyPairToPEM(keyPair: { publicKey: PublicKey; privateKey: PrivateKey; }): KeyPairPEM; /** * The returned buffers is guaranteed to unpooled. * This means the underlying `ArrayBuffer` is safely transferrable. */ declare function keyPairFromPEM(keyPair: KeyPairPEM): KeyPair | undefined; export { publicKeyToPEM, publicKeyFromPEM, privateKeyToPEM, privateKeyFromPEM, keyPairToPEM, keyPairFromPEM, };