/// import type http from 'node:http'; import type { ComponentInstance, ManifestData, RouteData, SSRManifest } from '../@types/astro.js'; import type DevPipeline from './devPipeline.js'; type AsyncReturnType Promise> = T extends (...args: any) => Promise ? R : any; export interface MatchedRoute { route: RouteData; filePath: URL; resolvedPathname: string; preloadedComponent: ComponentInstance; mod: ComponentInstance; } export declare function matchRoute(pathname: string, manifestData: ManifestData, pipeline: DevPipeline): Promise; type HandleRoute = { matchedRoute: AsyncReturnType; url: URL; pathname: string; body: ArrayBuffer | undefined; origin: string; manifestData: ManifestData; incomingRequest: http.IncomingMessage; incomingResponse: http.ServerResponse; manifest: SSRManifest; status?: 404 | 500; pipeline: DevPipeline; }; export declare function handleRoute({ matchedRoute, url, pathname, status, body, origin, pipeline, manifestData, incomingRequest, incomingResponse, manifest, }: HandleRoute): Promise; export {};