import { NextContextBase } from "../NextContext"; import { NextHttpBufferStreamOptions, NextHttpFileStreamOptions } from "../streaming/NextHttpFileStream"; import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml'; export declare class NextRouteResponse { statusCode: NextRouteResponseStatus; body: any; hasBody: Boolean; headers: { [key: string]: string; }; constructor(statusCode?: NextRouteResponseStatus, body?: any, hasBody?: Boolean, headers?: { [key: string]: string; }); static Xml(data: any, status?: number): NextRouteResponse; static Html(data: any, status?: number): NextRouteResponse; static Text(data: any, status?: number): NextRouteResponse; static Yaml(data: any, status?: number, options?: DocumentOptions & SchemaOptions & ParseOptions & CreateNodeOptions & ToStringOptions): NextRouteResponse; static Json(data: any, status?: number): NextRouteResponse; static File(context: NextContextBase, options: NextHttpFileStreamOptions): Promise; static Buffer(context: NextContextBase, options: NextHttpBufferStreamOptions): Promise; static FileNotFound(): NextRouteResponse; static NotFound(): NextRouteResponse; static BadRequest(): NextRouteResponse; static InternalServerError(): NextRouteResponse; static NotImplemented(): NextRouteResponse; static ServiceUnavailable(): NextRouteResponse; static UnprocessableEntity(): NextRouteResponse; static UnsupportedMediaType(): NextRouteResponse; static Unauthorized(): NextRouteResponse; static Redirect(url: string): NextRouteResponse; static Ok(body?: any, headers?: { [key: string]: string; }): NextRouteResponse; static Created(body?: any, headers?: { [key: string]: string; }): NextRouteResponse; static NoContent(headers?: { [key: string]: string; }): NextRouteResponse; static Unknown(): NextRouteResponse; } export declare enum NextRouteResponseStatus { OK = 200, CREATED = 201, NO_CONTENT = 204, NOT_FOUND = 404, ACCESS_DENIED = 403, BAD_REQUEST = 400, INTERNAL_SERVER_ERROR = 500, NOT_IMPLEMENTED = 501, SERVICE_UNAVAILABLE = 503, UNPROCESSABLE_ENTITY = 422, UNSUPPORTED_MEDIA_TYPE = 415, UNAUTHORIZED = 401, UNKNOWN = 0, REDIRECT = 302 } //# sourceMappingURL=NextRouteResponse.d.ts.map