import { KeyObject, type KeyObjectType } from 'crypto'; import { SignatureType } from './constants.js'; export declare function parsePemKey(unparsedKey: string | Buffer, passphrase?: string): KeyObject; export declare function isAsymmetricKeyTypeSupported(key: KeyObject): boolean; export declare function isPureWebBundle(bundle: Uint8Array): boolean; export declare function isSignedWebBundle(bundle: Uint8Array): boolean; export declare function getSignatureType(key: KeyObject): SignatureType; export declare function getPublicKeyAttributeName(key: KeyObject): string; export declare function getRawPublicKey(publicKey: KeyObject): Uint8Array; export declare function checkIsValidKey(expectedKeyType: KeyObjectType, key: KeyObject): void; export declare function getDigestAlgorithm(key: KeyObject): string | undefined; export declare function verifySignature(data: Uint8Array, signature: Uint8Array, publicKey: KeyObject): boolean; export declare function parseRawPublicKey(type: SignatureType, rawPublicKey: Uint8Array): KeyObject; export declare function calcWebBundleHash(webBundle: Uint8Array): Uint8Array; export declare function generateDataToBeSigned(webBundleHash: Uint8Array, integrityBlockCborBytes: Uint8Array, newAttributesCborBytes: Uint8Array): Uint8Array;