import { RedirectStatusCodes } from '#types/mix.js'; import { NodeResponse } from '#types/server-options.js'; import { Status } from '#utils/http-status-codes.js'; export declare class Res { /** * Native Node.js response. */ nodeRes: NodeResponse; constructor( /** * Native Node.js response. */ nodeRes: NodeResponse); /** * Setting value to the response header `Content-Type`. * * @example * * res.setContentType('application/xml').send({ one: 1, two: 2 }); */ setContentType(contentType: string): this; setHeader(key: string, value: string | number | string[]): this; /** * Send data as is, without any transformation. */ send(data?: string | Buffer | Uint8Array, statusCode?: Status): void; sendJson(data?: T, statusCode?: Status): void; redirect(statusCode: RedirectStatusCodes, path: string): void; } //# sourceMappingURL=response.d.ts.map