import { Future } from '@quenk/noni/lib/control/monad/future'; import { Context } from '../../request/context'; import { Response } from '../../response'; import { Plugin } from './'; export declare const DEFAULT_CSRF_COOKIE_NAME = "xsrf-token"; export declare const DEFAULT_CSRF_HEADER_NAME = "x-xsrf-token"; /** * CSRFProtectionPlugin * * This plugin updates the value of a CSRF token header * with the current value of a CSRF token cookie no each request. */ export declare class CSRFProtectionPlugin implements Plugin { cookie: string; header: string; constructor(cookie?: string, header?: string); beforeRequest(ctx: Context): Future>; afterResponse(r: Response): Future>; }