import { Action } from '@gamepark/rules-api'; import { GameNotification, Player } from '../../Types'; export type RecipientNotifications = { recipient?: PlayerId; notifications: GameNotification[]; }; export type LocalGameMessage = { type: 'notifications'; recipients: RecipientNotifications[]; players: Player[]; } | { type: 'undo'; action: Action; moveUndone: number; players: Player[]; } | { type: 'bots'; } | { type: 'reload'; }; export declare class LocalGameChannel { private readonly playerId; private readonly onMessage; readonly tabId: string; private readonly channel?; private readonly peers; private readonly heartbeat?; constructor(storage: string, playerId: PlayerId | undefined, onMessage: (message: LocalGameMessage) => void); post(message: LocalGameMessage): void; claimedPlayers(): Set; isBotsTab(): boolean; close(): void; private tabs; private send; private receive; }