import { IHttpContext } from '../context.js'; export interface IRouterOptions { prefix: string; ignoreTrailingSlash: boolean; staticref: boolean; middlewares: Array; } export type HTTP_METHOD = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS'; export type RouteHandlerCallback = (ctx: C) => Promise | any; export type RouteNextCallback = () => Promise | any; export type RouteMiddlewareCallback = (ctx: C, next: N) => Promise | any;