@valapi/valorant-api.com
Version:
Valorant API - valorant-api.com
46 lines (45 loc) • 1.63 kB
TypeScript
import type { Language } from "../client/ValorantApiCom";
import { ValorantApiComService } from "../client/ValorantApiComService";
import type { LanguageResponse, Response } from "../client/ValorantApiComService";
export declare namespace Gamemodes {
interface Gamemodes<L extends Language> {
uuid: string;
displayName: LanguageResponse<string, L>;
duration: LanguageResponse<string, L>;
economyType: string;
allowsMatchTimeouts: boolean;
isTeamVoiceAllowed: boolean;
isMinimapHidden: boolean;
orbCount: number;
/**
* `-1` means no data was available
*/
roundsPerHalf: number;
teamRoles: Array<string>;
gameFeatureOverrides: Array<{
featureName: string;
state: boolean;
}>;
gameRuleBoolOverrides: Array<{
ruleName: string;
state: boolean;
}>;
displayIcon: string;
listViewIconTall: string;
assetPath: string;
}
interface GamemodeEquippables<L extends Language> {
uuid: string;
displayName: LanguageResponse<string, L>;
category: string;
displayIcon: string;
killStreamIcon: string;
assetPath: string;
}
}
export declare class Gamemodes<L extends Language = any> extends ValorantApiComService {
get(): Response<Gamemodes.Gamemodes<L>[]>;
getEquippables(): Response<Gamemodes.GamemodeEquippables<L>[]>;
getByUuid(uuid: string): Response<Gamemodes.Gamemodes<L>>;
getEquippableByUuid(uuid: string): Response<Gamemodes.GamemodeEquippables<L>>;
}