import Base from '../../Base'; import type Client from '../../Client'; import type Friend from './Friend'; import type { PresenceGameplayStats, Platform, PresenceOnlineType, EOSPresencePerNs } from '../../../resources/structs'; /** * Represents a friend's presence */ declare class FriendPresence extends Base { /** * The friend this presence belongs to */ friend: Friend; /** * The status of the friend (eg. "Battle Royale Lobby - 1 / 16") */ status?: string; /** * The date when this presence was recieved */ receivedAt: Date; /** * The friend's online type */ onlineType: PresenceOnlineType; /** * The platform the friend is currently playing on */ platform: Platform; /** * Whether the friend is playing */ isPlaying: boolean; /** * Whether the friend's party is joinable */ isJoinable: boolean; /** * The id of the game session the friend is currently in */ sessionId?: string; /** * The rating of the friend's SaveTheWorld homebase */ homebaseRating?: number; /** * The subgame the friend is in */ subGame?: number; /** * Whether the friend is in an unjoinable match or not */ isInUnjoinableMatch?: boolean; /** * The friend's current selected playlist */ playlist?: string; /** * The member count of the friend's party */ partySize?: number; /** * The max members of the friend's party */ partyMaxSize?: number; /** * The stats of the game the friend is currently in */ gameplayStats?: PresenceGameplayStats; /** * @param client The main client * @param data The presence data * @param friend The friend this presence belongs to */ constructor(client: Client, data: EOSPresencePerNs, friend: Friend, onlineType: PresenceOnlineType); static parsePropsValue(value: string): T; static stringifyPropsValue(value: any): string; } export default FriendPresence;