UNPKG

@gaonengwww/jose

Version:

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

12 lines (9 loc) 507 B
import { CryptoKey } from '../types.d.cjs'; import { KeyImportOptions } from '../key/import.cjs'; declare const toSPKI: (key: unknown) => Promise<string>; declare const toPKCS8: (key: unknown) => Promise<string>; type PEMImportFunction = (pem: string, alg: string, options?: KeyImportOptions) => Promise<CryptoKey>; declare const fromPKCS8: PEMImportFunction; declare const fromSPKI: PEMImportFunction; declare const fromX509: PEMImportFunction; export { fromPKCS8, fromSPKI, fromX509, toPKCS8, toSPKI };