1/// <reference types="node" />
2import { Headers } from '@remix-run/node';
3import * as http from 'http';
4import { createRequestHandler as createExpoHandler } from '..';
5import { ExpoRequest, ExpoResponse } from '../environment';
6type NextFunction = (err?: any) => void;
7export type RequestHandler = (req: http.IncomingMessage, res: http.ServerResponse, next: NextFunction) => Promise<void>;
8/**
9 * Returns a request handler for http that serves the response using Remix.
10 */
11export declare function createRequestHandler({ build }: {
12    build: string;
13}, setup?: Parameters<typeof createExpoHandler>[1]): RequestHandler;
14export declare function convertRequest(req: http.IncomingMessage, res: http.ServerResponse): ExpoRequest;
15export declare function convertHeaders(requestHeaders: http.IncomingHttpHeaders): Headers;
16export declare function respond(res: http.ServerResponse, expoRes: ExpoResponse): Promise<void>;
17export {};
18