// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. import{Buffer}from"../../buffer.ts"; exporttypeHASH_DATA=string|ArrayBufferView|Buffer; exporttypeBinaryToTextEncoding="base64"|"base64url"|"hex"|"binary"; exporttypeCharacterEncoding="utf8"|"utf-8"|"utf16le"|"latin1"; exporttypeLegacyCharacterEncoding="ascii"|"binary"|"ucs2"|"ucs-2"; exporttypeEncoding=|BinaryToTextEncoding|CharacterEncoding|LegacyCharacterEncoding; exporttypeECDHKeyFormat="compressed"|"uncompressed"|"hybrid"; exporttypeBinaryLike=string|ArrayBufferView; exporttypeKeyFormat="pem"|"der"; exporttypeKeyType=|"rsa"|"rsa-pss"|"dsa"|"ec"|"ed25519"|"ed448"|"x25519"|"x448"; exportinterfacePrivateKeyInput{ key:string|Buffer; format?:KeyFormat|undefined; type?:"pkcs1"|"pkcs8"|"sec1"|undefined; passphrase?:string|Buffer|undefined;} exportinterfacePublicKeyInput{ key:string|Buffer; format?:KeyFormat|undefined; type?:"pkcs1"|"spki"|undefined;}