import Base from '../Base'; import Friend from '../structures/friend/Friend'; import type Client from '../Client'; /** * Represents the client's XMPP manager * @private */ declare class XMPP extends Base { /** * XMPP agent */ private connection?; /** * The amount of times the XMPP agent has tried to reconnect */ private connectionRetryCount; /** * The time the XMPP agent connected at */ private connectedAt?; /** * @param client The main client */ constructor(client: Client); /** * Whether the XMPP agent is connected */ get isConnected(): boolean; /** * Returns the xmpp JID */ get JID(): string | undefined; /** * Returns the xmpp resource */ get resource(): string | undefined; /** * Connects the XMPP agent to Epicgames' XMPP servers * @param sendStatusWhenConnected Whether to send an empty status status when connected */ connect(sendStatusWhenConnected?: boolean): Promise; /** * Disconnects the XMPP client. * Also performs a cleanup */ disconnect(): void; /** * Registers all events */ private setupEvents; /** * Waits for a friend to be added to the clients cache */ waitForFriend(id: string): Promise; } export default XMPP;