import { Request, Response } from "express"; interface CookieConfig { signed?: boolean; key?: string; path?: string; httpOnly?: boolean; maxAge?: number; ttl?: number; } export interface NestCsrfOptions { signed?: boolean; key?: string; ttl?: number; } export interface NestCsrfRequest extends Request { secret?: string; cookieConfig?: NestCsrfOptions; csrfToken?: () => string; } declare const nestCsrf: (options?: NestCsrfOptions) => (req: NestCsrfRequest, res: Response, next: any) => void; declare const getSecretFromRequest: (req: NestCsrfRequest, sessionKey: string, cookie: CookieConfig) => any; declare const getCsrfFromRequest: (req: NestCsrfRequest) => any; declare const verify: (secret: any, token: any) => boolean; export { nestCsrf, getSecretFromRequest, getCsrfFromRequest, verify };