import { KmsCreateKeyReturn } from "../../modules/kms/options/KmsCreateKeyOptions.js";
import { AnyUint8Array, Uint8ArrayBuffer } from "../../types.js";
import { JsonWebKey, KeyFormat, KeyGenAlgorithm, KeyImportParams, KeySignParams, KeyUsage, KeyVerifyParams } from "./types.js";
import { CredoWebCryptoKey } from "./CredoWebCryptoKey.js";
import { AgentContext } from "../../agent/context/AgentContext.js";

//#region src/crypto/webcrypto/CredoWalletWebCrypto.d.ts
declare class CredoWalletWebCrypto {
  private kms;
  constructor(agentContext: AgentContext);
  generateRandomValues<T extends ArrayBufferView | null>(array: T): T;
  sign(key: CredoWebCryptoKey, message: AnyUint8Array, algorithm: KeySignParams): Promise<Uint8ArrayBuffer>;
  verify(key: CredoWebCryptoKey, algorithm: KeyVerifyParams, message: AnyUint8Array, signature: AnyUint8Array): Promise<boolean>;
  generate(algorithm: KeyGenAlgorithm): Promise<KmsCreateKeyReturn<{
    kty: "OKP";
    crv: "Ed25519";
    modulusLength?: undefined;
  } | {
    kty: "OKP";
    crv: "X25519";
    modulusLength?: undefined;
  } | {
    kty: "EC";
    crv: "P-256" | "P-384" | "P-521";
    modulusLength?: undefined;
  } | {
    kty: "EC";
    crv: "secp256k1";
    modulusLength?: undefined;
  } | {
    kty: "RSA";
    modulusLength: 4096 | 3072 | 2048;
    crv?: undefined;
  }>>;
  importKey(format: KeyFormat, keyData: AnyUint8Array | JsonWebKey, algorithm: KeyImportParams, extractable: boolean, keyUsages: Array<KeyUsage>): Promise<CredoWebCryptoKey>;
  exportKey(format: KeyFormat, key: CredoWebCryptoKey): Promise<Uint8ArrayBuffer | JsonWebKey>;
}
//#endregion
export { CredoWalletWebCrypto };
//# sourceMappingURL=CredoWalletWebCrypto.d.ts.map