import { Request, Response } from 'express'; export interface IWithAuthenticationOptions { roles?: string[]; permissions?: string[]; } export declare function withAuthentication({ roles, permissions }?: IWithAuthenticationOptions): (req: Request, res: Response, next: any) => Promise;