import { GamanHeader } from '@gaman/core/headers/index.js'; export declare class ViewResponse { private viewName; private viewData; private init; constructor(viewName: string, viewData?: Record, init?: IResponseOptions); getName(): string; getData(): Record; getOptions(): IResponseOptions; } export interface IResponseOptions { status?: number; statusText?: string; headers?: Record; } export declare class Response { view?: ViewResponse; headers: GamanHeader; status: number; statusText: string; body?: any; constructor(body?: any, options?: IResponseOptions); static json(data: any, init?: IResponseOptions | number): Response; static text(message: string, init?: IResponseOptions | number): Response; static html(body: string, init?: IResponseOptions | number): Response; static render(viewName: string, viewData?: Record, init?: IResponseOptions): Response; static stream(readableStream: NodeJS.ReadableStream, init?: IResponseOptions | number): Response; static redirect(location: string, statusNumber?: number): Response; /** * Shorthand method to finish request with "200" status code */ static ok(body: string | object): Response; /** * Shorthand method to finish request with "201" status code */ static created(body?: string | object): Response; /** * Shorthand method to finish request with "202" status code */ static accepted(body: string | object): Response; /** * Shorthand method to finish request with "203" status code */ static nonAuthoritativeInformation(body: string | object): Response; /** * Shorthand method to finish request with "204" status code */ static noContent(): Response; /** * Shorthand method to finish request with "205" status code */ static resetContent(): Response; /** * Shorthand method to finish request with "206" status code */ static partialContent(body: string | object): Response; /** * Shorthand method to finish request with "300" status code */ static multipleChoices(body?: string | object): Response; /** * Shorthand method to finish request with "301" status code */ static movedPermanently(body?: string | object): Response; /** * Shorthand method to finish request with "302" status code */ static movedTemporarily(body?: string | object): Response; /** * Shorthand method to finish request with "303" status code */ static seeOther(body?: string | object): Response; /** * Shorthand method to finish request with "304" status code */ static notModified(body?: string | object): Response; /** * Shorthand method to finish request with "305" status code */ static useProxy(body?: string | object): Response; /** * Shorthand method to finish request with "307" status code */ static temporaryRedirect(body?: string | object): Response; /** * Shorthand method to finish request with "400" status code */ static badRequest(body?: string | object): Response; /** * Shorthand method to finish request with "401" status code */ static unauthorized(body?: string | object): Response; /** * Shorthand method to finish request with "402" status code */ static paymentRequired(body?: string | object): Response; /** * Shorthand method to finish request with "403" status code */ static forbidden(body?: string | object): Response; /** * Shorthand method to finish request with "404" status code */ static notFound(body?: string | object): Response; /** * Shorthand method to finish request with "405" status code */ static methodNotAllowed(body?: string | object): Response; /** * Shorthand method to finish request with "406" status code */ static notAcceptable(body?: string | object): Response; /** * Shorthand method to finish request with "407" status code */ static proxyAuthenticationRequired(body?: string | object): Response; /** * Shorthand method to finish request with "408" status code */ static requestTimeout(body?: string | object): Response; /** * Shorthand method to finish request with "409" status code */ static conflict(body?: string | object): Response; /** * Shorthand method to finish request with "410" status code */ static gone(body?: string | object): Response; /** * Shorthand method to finish request with "411" status code */ static lengthRequired(body?: string | object): Response; /** * Shorthand method to finish request with "412" status code */ static preconditionFailed(body?: string | object): Response; /** * Shorthand method to finish request with "413" status code */ static requestEntityTooLarge(body?: string | object): Response; /** * Shorthand method to finish request with "414" status code */ static requestUriTooLong(body?: string | object): Response; /** * Shorthand method to finish request with "415" status code */ static unsupportedMediaType(body?: string | object): Response; /** * Shorthand method to finish request with "416" status code */ static requestedRangeNotSatisfiable(body?: string | object): Response; /** * Shorthand method to finish request with "417" status code */ static expectationFailed(body?: string | object): Response; /** * Shorthand method to finish request with "422" status code */ static unprocessableEntity(body?: string | object): Response; /** * Shorthand method to finish request with "429" status code */ static tooManyRequests(body?: string | object): Response; /** * Shorthand method to finish request with "500" status code */ static internalServerError(body?: string | object): Response; /** * Shorthand method to finish request with "501" status code */ static notImplemented(body?: string | object): Response; /** * Shorthand method to finish request with "502" status code */ static badGateway(body?: string | object): Response; /** * Shorthand method to finish request with "503" status code */ static serviceUnavailable(body?: string | object): Response; /** * Shorthand method to finish request with "504" status code */ static gatewayTimeout(body?: string | object): Response; /** * Shorthand method to finish request with "505" status code */ static httpVersionNotSupported(body?: string | object): Response; }