import { Options, Data } from 'ejs'; import { C4CApiRequest, C4CApiResponse } from "./index"; export declare class Response { private req; private _res; private options?; private readonly headers; private readonly eventsOnFinish; private finalEvent; statusCode: number; private _end; result?: Record; constructor(req: C4CApiRequest, options?: Record); onFinish(callback: (res: Response) => any): void; finally(callback: (res: Response) => void): void; _setStatus(code: number): void; status(code: number): this; end(value: string | Record | any[] | C4CApiResponse): void; json(value: Record | any[]): this; file(filePath: string): void; render(view: string, data: Data, options: Options): void; redirect(url: string): void; cookie(name: string, value: string | number | Record, opts?: Record): this; clearCookie(name: string, options?: Record): this; error(e: Error | Record): void; notAuthorized(e: Error | Record): void; text(str: string): void; }