/// /** * just a definition use for inject */ import * as fastify from 'fastify'; import { ServerResponse } from 'http'; import { Http2ServerResponse } from 'http2'; export declare class HttpResponse implements fastify.FastifyReply { context: fastify.FastifyContext; request: fastify.FastifyRequest; res: ServerResponse; sent: boolean; callNotFound(): void; code(statusCode: number): fastify.FastifyReply; getHeader(name: string): string | undefined; getResponseTime(): number; hasHeader(name: string): boolean; header(name: string, value: any): fastify.FastifyReply; headers(headers: { [p: string]: any; }): fastify.FastifyReply; redirect(url: string): fastify.FastifyReply; redirect(statusCode: number, url: string): fastify.FastifyReply; removeHeader(name: string): fastify.FastifyReply; send(payload?: any): fastify.FastifyReply; serialize(payload: any): string; serializer(fn: Function): fastify.FastifyReply; status(statusCode: number): fastify.FastifyReply; type(contentType: string): fastify.FastifyReply; } export declare class Http2Response implements fastify.FastifyReply { context: fastify.FastifyContext; request: fastify.FastifyRequest; res: Http2ServerResponse; sent: boolean; callNotFound(): void; code(statusCode: number): fastify.FastifyReply; getHeader(name: string): string | undefined; getResponseTime(): number; hasHeader(name: string): boolean; header(name: string, value: any): fastify.FastifyReply; headers(headers: { [p: string]: any; }): fastify.FastifyReply; redirect(url: string): fastify.FastifyReply; redirect(statusCode: number, url: string): fastify.FastifyReply; removeHeader(name: string): fastify.FastifyReply; send(payload?: any): fastify.FastifyReply; serialize(payload: any): string; serializer(fn: Function): fastify.FastifyReply; status(statusCode: number): fastify.FastifyReply; type(contentType: string): fastify.FastifyReply; }