import { ConnorError } from "connor"; import { Response } from "express"; import { SudooExpressNextFunction } from "./declare"; import { ISudooExpressRoute } from "./route"; export declare class SudooExpressResponseAgent { static create(res: Response, route: ISudooExpressRoute): SudooExpressResponseAgent; private readonly _res; private readonly _route; private readonly _errorCreator; private readonly _successInfo; private _raw; private _file; private _redirect; private _binary; private _attachment; private _buffer; private _failInfo; private _noContent; private _created; private _extras; private constructor(); add(name: string, value: any): this; setExtra(name: string, value: any): this; getExtra(name: string): any; replaceExtras(extras: Record): this; getExtras(): Record; resetExtras(): this; migrate(map: Record): this; addIfExist(name: string, value: any | undefined | null): this; smart(path: string): this; redirect(path: string): this; attachment(content: string, filename: string, type?: string): this; buffer(binary: any, type: string): this; binary(binary: any): this; raw(content: any): this; addFile(path: string): this; declareNoContent(): this; declareCreated(): this; fail(code: number, error: ConnorError): this; send(): this; isFailed(): boolean; catchAndWrap(next: SudooExpressNextFunction): SudooExpressNextFunction; private _expectAllClean; private _expectOtherClean; private _expectClean; private _checkFailed; }