import { IncomingMessage } from "http"; import { URL } from "url"; import { Application, IHeaders, IKeyValueMap, RequestAbstract } from "@bunt/app"; import { StateType } from "@bunt/unit"; import { Cookies } from "./Cookies.js"; import { IRequestMessageOptions } from "./interfaces.js"; export declare class RequestMessage extends RequestAbstract { #private; readonly cookies: Cookies; readonly headers: IHeaders; readonly route: string; readonly params: IKeyValueMap; constructor(incomingMessage: IncomingMessage, options?: IRequestMessageOptions); get url(): URL; get host(): string; get userAgent(): string; get remoteAddress(): string; get origin(): string; validate(app: Application): boolean; isOptionsRequest(): boolean; createReadableStream(): NodeJS.ReadableStream; getRequestMethod(): string; linkState(state: StateType): void; protected getRoute(): string; protected createURL(url?: string): URL; } //# sourceMappingURL=RequestMessage.d.ts.map