/// import * as events from 'events'; import { IVerifyOptions } from 'passport-local'; declare type presence = { [location: string]: boolean; }; export declare class User { private mgr; id: string; login: string; password: string; name: string; initials: string; phone: string; macaddress: string; presence: presence; avatar: string; constructor(name: string, initials: string, phone: string, macaddress: string, avatar: string); setPresence(locationId: string, presence: boolean): void; getPresence(locationId?: string): boolean | presence; } export declare class UserMgr extends events.EventEmitter { users: { [x: string]: User; }; addUser(user: User, done?: (err: Error, user: User) => void): void; getUsers(): { [x: string]: User; }; getUser(id: string): User; nbUsers(): number; getPresentUsers(locationId: string): { [x: string]: User; }; checkUser(username: string, password: string, done: (error: any, user?: any, options?: IVerifyOptions) => void): void; findUserById(id: string, fn: (err: Error, user: User) => void): void; clearUsers(): void; } export {};