import { StatusCode } from "./types/http-schema"; import { ValidationError } from "./types/error-schema"; import { Response } from "express"; export interface IControllerResult { status: StatusCode; res: Response; data?: T | T[]; info?: string; error?: Error; blocked?: boolean; validationErrors?: ValidationError[]; send?: () => Response; redirect?: (location: string) => void; } declare class ControllerResult implements IControllerResult { readonly status: StatusCode; readonly data: T | T[]; readonly info: string; readonly error: Error; readonly res: Response; readonly validationErrors: ValidationError[]; constructor(result: IControllerResult); send(): Response; redirect(location: string): void; } export { ControllerResult };