///
///
import { EventEmitter } from 'events';
import SteamID from 'steamid';
import SteamUser from 'steam-user';
import { MessageID, CallbackFunction } from './types';
export declare class Underlords extends EventEmitter {
protected _steam: SteamUser;
protected _isInUnderlords: boolean;
protected _helloTimer?: NodeJS.Timeout | null;
protected _helloInterval: NodeJS.Timeout | null;
protected _helloTimerMs?: number;
protected _handlers: {
[key in MessageID]?: (body: any) => void;
};
haveGCSession: boolean;
protected _send(type: MessageID, protobuf: any, body: any): boolean;
protected _connect(): void;
protected handleAppQuit(emitDisconnectEvent: boolean): void;
constructor(steam: SteamUser);
protected isValidSteamId(id: SteamID): boolean;
requestProfile(args: {
steamid: string;
}, callback: CallbackFunction): boolean;
requestMatches({ steamid, rows, match_id_cursor, }: {
steamid: string;
rows?: number;
match_id_cursor?: number;
}, callback: CallbackFunction): boolean;
requestMatch({ match_id }: {
match_id: number;
}, callback: CallbackFunction): void;
getFriendRanks(callback: CallbackFunction): void;
spectateUser({ account_id, region_mode }: {
account_id: number;
region_mode?: number;
}, callback: CallbackFunction): void;
}