import type { Context } from './context/context'; export type Next = () => Promise; export type Handler = (ctx: Context) => Promise | any; export type Middleware = (ctx: Context, next: Next) => Promise; export type VariableValues = { [name: string]: any; }; export interface ExecutionContext { waitUntil(promise: Promise): void; passThroughOnException(): void; } export type Environment = Record;