import * as http from 'http'; import type { IHttpServerComponent } from '@dcl/core-commons'; import { Middleware } from './middleware'; /** * Adapts a Node request to the Fetch API request used by HTTP-server handlers. * * @param request Incoming Node request. * @param host Fallback host used to build the absolute URL. * @param maxBodySize Optional streaming body limit. * @param onBodyExceeded Optional callback invoked when the streaming body limit is exceeded. * @param signal Optional signal tied to the underlying client connection. * @returns A Fetch request whose body, headers, URL, and cancellation follow the Node request. */ export declare const getRequestFromNodeMessage: (request: T, host: string, maxBodySize?: number, onBodyExceeded?: () => void, signal?: AbortSignal) => IHttpServerComponent.IRequest; export declare const coerceErrorsMiddleware: Middleware; /** * Default middleware * @public */ export declare function defaultHandler(): Promise;