/// import { Identity } from '../utils/Identity'; import { ILogger, IResolver } from 'agentstack'; import { Attachments } from './Attachment'; import { IncomingHttpHeaders } from 'http'; import { WebApplicationSettings } from './WebApplicationSettings'; import { WebRequest } from './WebRequest'; import { Constructor } from 'agentframework'; import { FileField, TextField } from '../utils/FormParser'; export declare abstract class InternalWebRequest implements WebRequest { abstract data(): Promise; form(): Promise>; text(): Promise; json(): Promise; releaseType(type?: Constructor): any[]; registerType(type: Constructor, initializer: Function, finalizer: Function): void; releaseSingleton(type: Constructor): void; registerSingleton(type: Constructor, instance: any): void; resolve(type: Constructor, singleton?: boolean): Promise; construct(type: Constructor, singleton?: boolean): T; timestamp: Date; identity: Identity; logger: ILogger; settings: T; state: any; resolver: IResolver; ip: string; url: string; readonly href: string; readonly publicUrl: string; readonly origin: string; readonly protocol: string; readonly host: string; readonly hostname: string; readonly port: number; path: string; method: string; params: any | null; query: any | null; headers: IncomingHttpHeaders; readonly cookies: any; readonly signedCookies: any; readonly type: string; readonly length: number; body: any; attachments: Attachments; fingerprint(): { timestamp: Date; url: string; agent: string | string[]; ip: string; country: string; }; accepts(...type: Array): string | false; acceptsEncodings(...encoding: Array): string | Array | false; acceptsCharsets(...charset: Array): string | Array | false; acceptsLanguages(...lang: Array): string | Array | false; is(...type: Array): string | false | null; range(max: number): any; get(name: string): string | string[] | undefined; readonly abstract country: string | null; readonly abstract device: string | null; }