import * as tokenMgr from '../lib/token'; import * as express from 'express'; import { IVerifyOptions } from 'passport-local'; import * as socketio from 'socket.io'; import * as session from 'express-session'; declare class User { id: string; } declare var _tokenMgr: typeof tokenMgr; export declare function configure(app: express.Application, check: (user: string, pwd: string, done: (error: any, user?: any, options?: IVerifyOptions) => void) => void, findById: (user: string, cb: (err: Error, user: User) => void) => void, tokenMgr: typeof _tokenMgr, loginPath: string, loginContent: (req: express.Request, resp: express.Response) => void, store: typeof session.Store, devMode: boolean): void; export declare function ensureAuthenticated(req: express.Request, res: express.Response, next: express.NextFunction): void; export declare function checkAuthenticated(req: express.Request, res: express.Response, next: express.NextFunction): void | express.Response>; export declare function socketIoAuthorize(): (socket: socketio.Socket, next: (err?: any) => void) => void; export {};