import uWS from "uWebSockets.js"; import http from "http"; import EventEmitter from "events"; import { Socket } from "./Socket.js"; import { Application } from "./Application.js"; export declare class IncomingMessage extends EventEmitter implements http.IncomingMessage { #private; private req; private res; private app; url: string; originalUrl: string; method: string; headers: http.IncomingHttpHeaders; body: any; complete: boolean; private _baseUrl; private _rawquery; private _query; private _params; private _remoteAddress; private _readableState; private _readBodyMaxTime; private _rawbody?; private _dataEventRegistered; aborted: boolean; socket: Socket; private parameterNames; constructor(req: uWS.HttpRequest, res: uWS.HttpResponse, app: Application, initialData?: { headers?: http.IncomingHttpHeaders; url?: string; method?: string; body?: any; query?: string; remoteAddress?: ArrayBuffer; }); get(name: string): string | string[]; header(name: string): string | string[]; accepts(...args: any[]): string | false; resume(): this; on(event: string | symbol, listener: (...args: any[]) => void): this; _readBody(): Promise; }