import { MatchResult } from "path-to-regexp"; import { StateFn } from "../State"; export interface RequestParams { state: StateFn; matches: MatchResult; body: any; headers: Headers; request: Request; } export interface ScheduledParams { state: StateFn; event?: any; env?: any; ctx?: any; } export type Handler = ((params: RequestParams) => Response | Promise); export interface RouteObject { [route: string]: Handler; } //# sourceMappingURL=interfaces.d.ts.map