/// import { IncomingMessage, ServerResponse } from 'http'; import type { Handler } from '@netlify/functions'; import { Context } from './context'; export declare type RunKitRoute = { endpoint: (req: IncomingMessage, res: ServerResponse) => any; }; export declare type VercelRoute = (req: IncomingMessage, res: ServerResponse) => any; export declare type NetlifyRoute = { handler: Handler; }; export declare type ServerfullRoute = (ctx: Context) => any; export declare type ServerlessRoute = RunKitRoute | VercelRoute | NetlifyRoute; export declare type RouteHandler = ServerfullRoute | ServerlessRoute;