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) 466 B
import { JWSHeaderParameters, CryptoKey, KeyObject, JWK, SignOptions, FlattenedJWS } from '../../types.d.cjs'; declare class FlattenedSign { #private; constructor(payload: Uint8Array); setProtectedHeader(protectedHeader: JWSHeaderParameters): this; setUnprotectedHeader(unprotectedHeader: JWSHeaderParameters): this; sign(key: CryptoKey | KeyObject | JWK | Uint8Array, options?: SignOptions): Promise<FlattenedJWS>; } export { FlattenedSign };