import * as express from 'express'; import { NextFunction, Request, Response } from 'express'; import { UserDTO, UserRoles } from '../../../common/entities/UserDTO'; import { ParamsDictionary } from 'express-serve-static-core'; import { IExtensionRESTApi, IExtensionRESTRoute, IMediaRequestBody } from './IExtension'; import { ILogger } from '../../Logger'; import { MediaEntity } from '../database/enitites/MediaEntity'; import { Repository } from 'typeorm'; export declare class ExpressRouterWrapper implements IExtensionRESTApi { private readonly router; private readonly name; private readonly extLogger; constructor(router: express.Router, name: string, extLogger: ILogger); get use(): ExpressRouteWrapper; get get(): ExpressRouteWrapper; get put(): ExpressRouteWrapper; get post(): ExpressRouteWrapper; get delete(): ExpressRouteWrapper; } export declare class ExpressRouteWrapper implements IExtensionRESTRoute { private readonly router; private readonly name; private readonly func; private readonly extLogger; constructor(router: express.Router, name: string, func: 'get' | 'use' | 'put' | 'post' | 'delete', extLogger: ILogger); mediaJsonResponse(paths: string[], minRole: UserRoles, invalidateDirectory: boolean, cb: (params: ParamsDictionary, body: IMediaRequestBody, user: UserDTO, media: MediaEntity, repository: Repository) => Promise | unknown): string; jsonResponse(paths: string[], minRole: UserRoles, cb: (params?: ParamsDictionary, body?: any, user?: UserDTO) => Promise | unknown): string; rawMiddleware(paths: string[], minRole: UserRoles, mw: (req: Request, res: Response, next: NextFunction) => void | Promise): string; private getAuthMWs; }