import type { DataFunctionArgs } from "./routeModules" ; import type { EntryContext , AssetsManifest } from "./entry" ; import type { ServerRouteManifest } from "./routes" ; /**
 * The output of the compiler for the server build.
 */ export interface ServerBuild { entry : { module : ServerEntryModule ; } ; routes : ServerRouteManifest ; assets : AssetsManifest ; } export interface HandleDocumentRequestFunction { ( request , responseStatusCode , responseHeaders , context ) : Promise < Response > | Response ; } export interface HandleDataRequestFunction { ( response , args ) : Promise < Response > | Response ; } /**
 * A module that serves as the entry point for a Remix app during server
 * rendering.
 */ export interface ServerEntryModule { default : HandleDocumentRequestFunction ; handleDataRequest ? : HandleDataRequestFunction ; }