export interface CsrfTokenManagerOptions {
    tokenTtlMs?: number;
    cleanupIntervalMs?: number;
}
export declare class CsrfTokenManager {
    private readonly tokenTtlMs;
    private readonly records;
    private readonly cleanupTimer;
    constructor(options?: CsrfTokenManagerOptions);
    dispose(): void;
    generateToken(sessionId: string): string;
    validateToken(token: string, sessionId: string): boolean;
    cleanupExpiredTokens(nowMs?: number): number;
    getActiveTokenCount(): number;
}
export declare function getCsrfTokenManager(options?: CsrfTokenManagerOptions): CsrfTokenManager;
export declare function resetCsrfTokenManager(): void;
//# sourceMappingURL=csrf-manager.d.ts.map