import csrf from 'csrf'; import type { Request, Response } from 'express'; import { SecurityEventType } from '../../utils/logger.js'; export interface SessionWithCSRF { csrfSecret?: string; } export interface CSRFOptions { secretLength?: number; saltLength?: number; ignoreMethods?: string[]; value?: (req: Request) => string | undefined; } export declare const csrfTokens: csrf; export declare const shouldSkipCSRF: (req: Request) => boolean; export declare const initializeCSRFSecret: (req: Request) => void; export declare const extractCSRFToken: (req: Request, options: CSRFOptions) => string | undefined; export declare const logCSRFSecurityEvent: (eventType: SecurityEventType, req: Request, additionalData?: Record) => void; export declare const sendCSRFError: (res: Response, code: string, message: string) => void; export declare const handleCSRFVerificationError: (req: Request, res: Response, error: unknown) => void; //# sourceMappingURL=csrf-utils.d.ts.map