export declare enum Platform { ios = "ios", android = "android" } export interface Device { id: string; platform: Platform; } export interface IStatus { status: boolean; } export interface IUser { _id: string; username: string; displayName: string; avatarUrl: string; isAnonymous: boolean; email: string; lang: string; location: string; timezone: string; metadata: any; devices: Device[]; facebookId: string; twitterId: string; googleId: string; gameCenterId: string; steamId: string; friendIds: string[]; blockedUserIds: string[]; createdAt: Date; updatedAt: Date; } export declare class Auth implements IUser { _id: string; username: string; displayName: string; avatarUrl: string; isAnonymous: boolean; email: string; lang: string; location: string; timezone: string; metadata: any; devices: Device[]; facebookId: string; twitterId: string; googleId: string; gameCenterId: string; steamId: string; friendIds: string[]; blockedUserIds: string[]; createdAt: Date; updatedAt: Date; token: string; protected endpoint: string; protected keepOnlineInterval: any; constructor(endpoint: string); get hasToken(): boolean; login(options?: { accessToken?: string; deviceId?: string; platform?: string; email?: string; password?: string; }): Promise; save(): Promise; getFriends(): Promise; getOnlineFriends(): Promise; getFriendRequests(): Promise; sendFriendRequest(friendId: string): Promise; acceptFriendRequest(friendId: string): Promise; declineFriendRequest(friendId: string): Promise; blockUser(friendId: string): Promise; unblockUser(friendId: string): Promise; request(method: "get" | "post" | "put" | "del", segments: string, query?: { [key: string]: number | string; }, body?: any, headers?: { [key: string]: string; }): Promise; logout(): void; registerPingService(timeout?: number): void; unregisterPingService(): void; }