import type { Container } from "@webiny/feature/api"; import type { PluginsContainer } from "@webiny/plugins"; export interface Request { url?: string; method?: string; headers: Record; body?: unknown; params?: Record; query?: Record; path?: string; [key: string]: unknown; } export interface Reply { send(data?: unknown): void | Promise; code(statusCode: number): Reply; headers(headers: Record): Reply; header(name: string, value: string): Reply; setCookie(name: string, value: string, options?: Record): Reply; [key: string]: unknown; } export interface Context { plugins: PluginsContainer; container: Container; }