import { P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.mjs'; import { SignOptions, PrivateKey, VerifyOptions, JwtHeader, SigningKeyCallback } from 'jsonwebtoken'; import { Options, JwksClient } from 'jwks-rsa'; import { Context } from 'moleculer'; import 'bson'; import 'zod/v4'; import 'ajv/dist/2019.js'; import 'pino'; import 'pino-pretty'; type JwtSignerMixinSettings = { signOptions: SignOptions; privateKey: PrivateKey; /** * Set to false to disable caching of the JWT token. */ renewBefore: number | false; /** * Set to true to disable the getToken action. */ disableAction?: boolean; }; declare function JwtSignerMixin(opts: JwtSignerMixinSettings): PartialCustomServiceSchema; }, unknown>; type JwtVerifierMixinSettings = { jwksOptions: Options; validClaim: VerifyOptions; }; declare function JwtVerifierMixin(opts: JwtVerifierMixinSettings): PartialCustomServiceSchema; /** * Will validate the JWT token signature but also some claims like the issuer. */ verifyJwt(token: string): Promise; verifyAuthorizationHeader(ctx: Context, value: string | undefined): Promise; }, unknown>; export { JwtSignerMixin, JwtVerifierMixin }; export type { JwtSignerMixinSettings, JwtVerifierMixinSettings };