import { Asset, GameMode, IMatch, MapName, Participant, PlatformRegion, PubgAPI, Roster, SeasonState, Telemetry } from '..';
export declare class Match {
private _id;
private _dateCreated;
private _duration;
private _gameMode;
private _isCustomMatch;
private _map;
private _patchVersion;
private _seasonState;
private _shardId;
private _participants;
private _rosters;
private _asset?;
private constructor();
static get(api: PubgAPI, matchId: string): Promise<Match>;
static fromDetail(matchDetail: IMatch): Match;
readonly id: string;
readonly dateCreated: Date;
readonly duration: number;
readonly gameMode: GameMode;
readonly isCustomMatch: boolean;
readonly map: MapName;
readonly patchVersion: string | undefined;
readonly seasonState: SeasonState;
readonly shardId: PlatformRegion;
readonly asset: Asset;
readonly participants: Participant[];
readonly rosters: Roster[];
getParticipantById(id: string): Participant | undefined;
getParticipantByName(name: string): Participant | undefined;
getWinners(): Participant[];
getTelemetry(api: PubgAPI): Promise<Telemetry>;
}
import { Asset, GameMode, IMatch, MapName, Participant, PlatformRegion, PubgAPI, Roster, SeasonState, Telemetry } from '..';
export declare class Match {
private _id;
private _dateCreated;
private _duration;
private _gameMode;
private _isCustomMatch;
private _map;
private _patchVersion;
private _seasonState;
private _shardId;
private _participants;
private _rosters;
private _asset?;
private constructor();
static get(api: PubgAPI, matchId: string): Promise<Match>;
static fromDetail(matchDetail: IMatch): Match;
readonly id: string;
readonly dateCreated: Date;
readonly duration: number;
readonly gameMode: GameMode;
readonly isCustomMatch: boolean;
readonly map: MapName;
readonly patchVersion: string | undefined;
readonly seasonState: SeasonState;
readonly shardId: PlatformRegion;
readonly asset: Asset;
readonly participants: Participant[];
readonly rosters: Roster[];
getParticipantById(id: string): Participant | undefined;
getParticipantByName(name: string): Participant | undefined;
getWinners(): Participant[];
getTelemetry(api: PubgAPI): Promise<Telemetry>;
}