import { AnyObject } from 'tn-typescript'; import { ExoHeaders } from '../../ExoHeaders/ExoHeaders'; import { ExoContentType } from '../../ExoMisc/ExoContentType'; import { ExoTime } from '../../accessories/ExoTime'; import { ExoConnection } from '../ExoConnection'; import { ECRCacheMaxAgeOpts } from './accessories/ecrCacheMaxAge'; type SendValue = void | string | AnyObject | Blob | ArrayBuffer | Buffer; export declare class ExoConnResponse { private conn; constructor(conn: ExoConnection); private get nodereq(); private get noderes(); private status; setStatus(status: number): this; headers: ExoHeaders; setContentType(ctype: ExoContentType): this; setCacheMaxAge(time: ExoTime, opts?: ECRCacheMaxAgeOpts): this; private caughterr; private resolveSend; private resolveNotModified; private resolveEvent; send(value: SendValue): Promise; async(): this; private $eventOpened; private $eventClosed; private $eventFlushed; private sendEvent; eventFlush(): void; event(chunk: string | AnyObject): void; eventRaw(chunk: string | AnyObject): void; eventClose(): void; } export {};