declare module "ext:core/ops" { type CryptoUsage = import("./types.js").CryptoKeyUsage; type CryptoOperation = import("./types.js").CryptoOperation; type CryptoFormat = import("./types.js").CryptoKeyFormat; type CryptoMeta = import("./types.js").CryptoKeyMetadata; type CryptoBuffer = import("./types.js").CryptoBuffer; type CryptoView = import("./types.js").CryptoView; export function op_crypto_random(bytes: CryptoView): null; export function op_crypto_uuid(input: null): string; export function op_crypto_key_dispose(id: number): null; export function op_crypto_key_clone(id: number): number; export function op_crypto_key_serialize(id: number): number; export function op_crypto_key_deserialize(id: number): number; export function op_crypto_key_pair_generate( args: [ algorithm: string, hash: string, length: number, exponent: CryptoBuffer, curve: string, usages: CryptoUsage[], extractable: boolean, ], ): Promise<[publicId: number, privateId: number, length: number, exponent: CryptoBuffer | null]>; export function op_crypto_key_generate( args: [algorithm: string, length: number, hash: string, usages: CryptoUsage[], extractable: boolean], ): Promise; export function op_crypto_key_import( args: [ algorithm: string, bytes: CryptoBuffer, length: number, hash: string, usages: CryptoUsage[], extractable: boolean, ], ): Promise; export function op_crypto_key_import_asymmetric( args: [ format: CryptoFormat, data: CryptoBuffer, algorithm: string, hash: string, curve: string, usages: CryptoUsage[], extractable: boolean, ], ): Promise; export function op_crypto_key_import_jwk( args: [ jwk: Record, algorithm: string, hash: string, curve: string, usages: CryptoUsage[], extractable: boolean, length: number, ], ): Promise; export function op_crypto_key_export(args: [id: number, format: CryptoFormat]): Promise; export function op_crypto_key_export_jwk(id: number): Promise>; export function op_crypto_derive_key( args: [ id: number, hash: string, salt: CryptoBuffer, iterations: number, info: CryptoBuffer, length: number, algorithm: string, keyHash: string, usages: CryptoUsage[], extractable: boolean, peerId: number, ], ): Promise; export function op_crypto_wrap_key( args: [ wrappingId: number, targetId: number, format: CryptoFormat, algorithm: string, hash: string, iv: CryptoBuffer, counter: CryptoBuffer, additional: CryptoBuffer, tagLength: number, ], ): Promise; export function op_crypto_unwrap_key( args: [ wrappingId: number, format: CryptoFormat, wrapped: CryptoBuffer, algorithm: string, hash: string, curve: string, usages: CryptoUsage[], extractable: boolean, iv: CryptoBuffer, counter: CryptoBuffer, additional: CryptoBuffer, tagLength: number, length: number, ], ): Promise; export function op_crypto_run( args: [ operation: CryptoOperation, id: number, hash: string, iv: CryptoBuffer, counter: CryptoBuffer, additional: CryptoBuffer, tagLength: number, iterations: number, salt: CryptoBuffer, info: CryptoBuffer, input: CryptoBuffer, peerId: number, ], ): Promise; export function op_crypto_digest(args: [name: string, input: CryptoBuffer]): Promise; }