export interface NonceStore { /** * Atomically check if nonce is new and mark it used. * @returns true if nonce is allowed (first use), false if replay. */ checkAndSet(nonce: string, ttlSeconds: number): Promise; } /** * In-memory nonce store. Default, single-instance only — for multi-instance * deployments inject a shared store (e.g. RedisNonceStore from * @pylonts/sign-redis-driver) via auth.token.nonceStore. */ export declare class MemoryNonceStore implements NonceStore { private cache; private lastSweep; private static readonly SWEEP_INTERVAL_MS; private static readonly MAX_ENTRIES; checkAndSet(nonce: string, ttlSeconds: number): Promise; /** Drop expired entries; runs when the cache grows large or on a time interval. */ private sweepIfDue; } //# sourceMappingURL=NonceStore.d.ts.map