UNPKG

@playt/client

Version:
23 lines (20 loc) 848 B
import { o as operations } from './types-QOhObLeB.js'; declare const PlaytBrowserClient: ({ gameId, apiUrl, playerToken, }: { gameId: string; apiUrl: string; playerToken: string; }) => { initialize: ({ gameVersion }: { gameVersion: string; }) => Promise<void>; startMatch: (userId: string, matchId: string) => Promise<void>; stopMatch: () => Promise<void>; reportFatalError: (error: unknown) => void; updatePlayerSettings: (userSettings: Omit<operations["updateSettings"]["requestBody"]["content"]["application/json"], "playerToken">) => Promise<void>; quitMatch: () => Promise<void>; getAvatar: () => Promise<{ url: string; backgroundColor: "#FFAA7A" | "#A9FF94" | "#D694FF" | "#94BFFF" | "#7EFFD1" | "#FFDB7E" | "#FF7E7E"; }>; }; export { PlaytBrowserClient as default };