UNPKG

streamby-core

Version:

StreamBy middleware framework for media storage management

6 lines (5 loc) 397 B
import { Auth } from '../types'; import { Request, Response, NextFunction } from 'express'; import { StreamByConfig } from '../types'; export declare const authenticate: (config: StreamByConfig) => (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>; export declare function checkRole(auth: Auth, required: 'viewer' | 'editor' | 'admin'): void;