import { JwkDidSupportedKeyTypes, KeyUse } from './types/utility-types.js'; import type { VerificationMethod, JsonWebKey } from 'did-resolver'; /** * Determine the key use based on the type of key and an optional passed key use param. * @param keyType - The type of key (e.g., 'Ed25519', 'X25519', 'Secp256k1', 'Secp256r1'). * @param passedKeyUse - Optional key use parameter ('sig' for signature, 'enc' for encryption). * * @returns The determined key use ('sig' or 'enc'). * @internal */ export declare function getKeyUse(keyType: JwkDidSupportedKeyTypes, passedKeyUse?: KeyUse): KeyUse; /** * Check if the provided data is a valid JSON Web Key (JWK). * @param data - The data to be checked. * * @internal */ export declare function isJWK(data: unknown): data is JsonWebKey; /** * Create a JSON Web Key (JWK) from the given public key material and key type. * * @param keyType - The type of key (e.g., 'Ed25519', 'X25519', 'Secp256k1', 'Secp256r1'). * @param pubKey - The public key material as a hex string or Uint8Array. * @param passedKeyUse - Optional key use parameter ('sig' for signature, 'enc' for encryption). * @returns The generated JWK or undefined if the key type is not supported. * * @internal */ export declare function createJWK(keyType: JwkDidSupportedKeyTypes, pubKey: string | Uint8Array, passedKeyUse?: KeyUse): JsonWebKey | undefined; /** * Generate a JSON Web Key (JWK) from a given verification method. * * @param keyType - The type of key (e.g., 'Ed25519', 'X25519', 'Secp256k1', 'Secp256r1'). * @param key - The verification method containing the public key information. * @param keyUse - Optional key use parameter ('sig' for signature, 'enc' for encryption). * @returns The generated JWK. * * @internal */ export declare function generateJwkFromVerificationMethod(keyType: JwkDidSupportedKeyTypes, key: VerificationMethod, keyUse?: KeyUse): JsonWebKey | undefined; //# sourceMappingURL=jwk-did-utils.d.ts.map