@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) • 465 B
TypeScript
import { JWSHeaderParameters, CryptoKey, KeyObject, JWK, SignOptions, FlattenedJWS } from '../../types.d.js';
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 };