import type { Middleware, NextFunction } from "../../Contracts/Http/Middleware"; import type Encrypter from "../../Encryption/Encrypter"; import type { Request } from "../../Http/Request"; import type Response from "../../Http/Response"; import { Cookie } from "../../Foundation/Http"; declare class EncryptCookie implements Middleware { protected encrypter: Encrypter; protected except: string[]; constructor(encrypter?: Encrypter); handle(req: Request, next: NextFunction): Promise; handleAfter(res: Response): Promise; protected decrypt(req: Request): Request; protected encrypt(res: Response): Response; isDisabled(key: string): boolean; protected decryptCookie(cookie: string): string; /** * validate and remove the cookie value prefix from the value */ protected validateValue(key: string, value: string): string | null; /** * Duplicate a cookie with a new value. */ protected duplicate(cookie: Cookie, value: any): Cookie; } export default EncryptCookie;