/** * This module was copied from https://github.com/honojs/hono/blob/master/src/utils/jwt/jwt.ts */ import '../../node-crypto-polyfill.js'; import type { OidcJwk } from '../auth.js'; import { AlgorithmTypes } from './types.js'; export declare const sign: (payload: unknown, secret: string, alg?: AlgorithmTypes, kid?: string) => Promise; export declare const verify: (token: string, secretOrJwk: string | OidcJwk, alg?: AlgorithmTypes, ignoreExpiration?: boolean) => Promise; export declare const decode: (token: string) => { header: { alg: AlgorithmTypes; kid: string; [key: string]: unknown; }; payload: Record; }; //# sourceMappingURL=jwt.d.ts.map