import * as http from 'http'; import { type RequestHandlerInput as ExpoRequestHandlerInput, type RequestHandlerParams as ExpoRequestHandlerParams } from './abstract'; export { ExpoError } from './abstract'; type NextFunction = (err?: any) => void; export type RequestHandler = (req: http.IncomingMessage, res: http.ServerResponse, next: NextFunction) => Promise; export interface RequestHandlerParams extends ExpoRequestHandlerParams, Partial { handleRouteError?(error: Error): Promise; } /** * Returns a request handler for http that serves the response using Remix. */ export declare function createRequestHandler(params: { build: string; environment?: string | null; }, setup?: Partial): RequestHandler; export declare function convertRequest(req: http.IncomingMessage, res: http.ServerResponse): Request; export declare function convertHeaders(requestHeaders: http.IncomingHttpHeaders): Headers; export declare function respond(res: http.ServerResponse, expoRes: Response): Promise;