import { NextFunction, Request, Response } from 'express'; export declare class RenderingMWs { static renderResult(req: Request, res: Response, next: NextFunction): void; static renderSessionUser(req: Request, res: Response, next: NextFunction): void; static renderSharing(req: Request, res: Response, next: NextFunction): void; static renderSharingList(req: Request, res: Response, next: NextFunction): void; /** * For media that rarely changes under the same URL (photos, thumbnails, previews). * Cached for a day only: a photo can be replaced in the folder, a thumbnail regenerated with other settings. * private: these are behind authentication, so shared caches (proxies, CDNs) must not store them. */ static renderFile(req: Request, res: Response, next: NextFunction): void; /** * For files that can change under the same URL (e.g. bestFit switches to the transcoded video once it is ready). * The browser revalidates them with the ETag. */ static renderFileNoCache(req: Request, res: Response, next: NextFunction): void; /** * For responses that differ on every request (e.g. random photo). */ static renderFileNoStore(req: Request, res: Response, next: NextFunction): void; private static sendFile; static renderOK(req: Request, res: Response): void; static renderConfig(req: Request, res: Response): Promise; static notFound(req: Request, res: Response, next: NextFunction): void; static renderError(err: Error, req: Request, res: Response, next: NextFunction): void; /** * An http-errors error of the client (status 4xx), raised by express or its middlewares. */ static isClientHttpError(err: unknown): err is Error & { status: number; headers?: Record; }; private static httpStatus; protected static renderMessage(res: Response, content: T): void; }