/// import { ReadonlyMap, HttpHeaderKeys } from '../http/index'; import { IncomingMessage } from 'http'; export declare class RestRequest { #private; private readonly request; readonly clientId: string; constructor(request: IncomingMessage, params: Record, clientId: string); /** * Gets the ip address associated with this request. This address will either * be the raw socket remoteAddress, or in the instance of a load balancer, the * x-forwarded-for address. If no address can be resolved, then this function * returns 0.0.0.0. */ get ipAddress(): string; /** Gets or sets request context variables */ get context(): Map; /** Gets the http headers for this request */ get headers(): ReadonlyMap; /** Gets the parsed querystring parameters for this request */ get query(): ReadonlyMap; /** Gets the parsed params obtain from the url pattern */ get params(): ReadonlyMap; /** Reads one buffer from this request */ read(): Promise; /** Async iterator for this request. */ [Symbol.asyncIterator](): AsyncGenerator; /** Returns the raw url for this request */ get url(): string | undefined; /** Returns the http method for this request */ get method(): string | undefined; /** Reads the body of this request as a Uint8Array */ arrayBuffer(): Promise; /** Reads the body of this request as text */ text(options?: TextDecodeOptions): Promise; /** Reads the body of this request as json */ json(): Promise; }