import type { BlacklistStore } from './BlacklistStore.js'; /** * Invalidates access tokens by `jti` until natural expiry (+ optional grace period). */ export declare class JwtBlacklist { private readonly store; private readonly gracePeriodSeconds; /** * @param store - Underlying key/value store. * @param gracePeriodSeconds - Extra seconds to keep a blacklisted `jti` after token expiry. */ constructor(store: BlacklistStore, gracePeriodSeconds: number); /** * Blacklists a JWT by `jti` until remaining lifetime + grace. * * @param token - Raw JWT string. */ add(token: string): Promise; /** * @param token - Raw JWT string. * @returns True when blacklisted. */ isBlacklisted(token: string): Promise; /** * Clears all blacklist entries. */ flush(): Promise; } //# sourceMappingURL=JwtBlacklist.d.ts.map