export interface RequestLike { method: string; url: string; headers: Record; body?: unknown; query?: Record; user?: unknown; files?: Record; file?: FileUpload; } export interface FileUpload { filename: string; mimetype: string; size: number; buffer?: Buffer; stream?: unknown; path?: string; } export interface CookieOptions { maxAge?: number; expires?: Date; path?: string; domain?: string; secure?: boolean; httpOnly?: boolean; sameSite?: 'strict' | 'lax' | 'none'; priority?: 'low' | 'medium' | 'high'; } export declare class CookieJar { private cookies; set(name: string, value: string, options?: CookieOptions): void; get(name: string): string | undefined; delete(name: string): void; clear(): void; entries(): Array<[string, { value: string; options: CookieOptions; }]>; toHeaderString(): string; } export interface ResponseLike { status: number; headers: Record; body: unknown; } export declare class Context { req: RequestLike; res: ResponseLike; params: Record; cookies?: CookieJar; email?: unknown; storage?: unknown; twilio?: unknown; stripe?: unknown; memory?: unknown; loadBalancer?: unknown; circuitBreaker?: unknown; tracing?: unknown; metrics?: unknown; dashboard?: unknown; anomaly?: unknown; hotReload?: unknown; playground?: unknown; codegen?: unknown; resourceAllocation?: unknown; queryCount?: number; cacheHit?: boolean; queryExecutions?: unknown[]; predictionConfidence?: number; optimizationApplied?: string; constructor(req: RequestLike, params?: Record); text(text: string, status?: number): ResponseLike; json(data: unknown, status?: number): ResponseLike; html(html: string, status?: number): ResponseLike; redirect(url: string, status?: number): ResponseLike; setHeader(name: string, value: string): this; getHeader(name: string): string | string[] | undefined; setStatus(status: number): this; getQuery(name: string): string | undefined; getParam(name: string): string | undefined; getBody(): unknown; getUser(): unknown; setCookie(name: string, value: string, options?: CookieOptions): this; getCookie(name: string): string | undefined; } export default Context; //# sourceMappingURL=context.d.ts.map