import { type JwtClaims, type TokenType } from "../../contracts/auth.js"; import { type JwksLookupOptions } from "./jwks.js"; export interface SignJwtOptions { privateKeyPem: string; kid: string; claims: Omit & { iss: string; aud: string | string[]; expiresInSeconds: number; jti?: string; }; } export type KeyResolver = (kid: string) => Promise; export interface VerifyJwtOptions { jwks?: JwksLookupOptions; keyResolver?: KeyResolver; expectedIssuer: string; expectedAudience: string; expectedTokenType?: TokenType; clockToleranceSeconds?: number; } export declare function signJwt(options: SignJwtOptions): string; export declare function verifyJwt(token: string, options: VerifyJwtOptions): Promise; export declare function unsafeDecodeJwtPayload(token: string): unknown; //# sourceMappingURL=tokens.d.ts.map