UNPKG

@gaonengwww/jose

Version:

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes

9 lines (6 loc) 426 B
import { CryptoKey, KeyObject } from '../types.d.js'; declare function assertCryptoKey(key: unknown): asserts key is CryptoKey; declare function isCryptoKey(key: unknown): key is CryptoKey; declare function isKeyObject<T extends KeyObject = KeyObject>(key: unknown): key is T; declare const _default: (key: unknown) => key is CryptoKey | KeyObject; export { assertCryptoKey, _default as default, isCryptoKey, isKeyObject };