import { GameState, PublicState } from "@pokertools/types"; /** * Create public view of game state for a specific player * Masks opponent hole cards and deck to prevent cheating * Respects shownCards for granular card visibility * * @param state Full game state * @param playerId Player requesting view (null = spectator) * @param version State version number (defaults to 0 if not provided) * @returns Masked public state */ export declare function createPublicView(state: GameState, playerId?: string | null, version?: number): PublicState; /** * Create spectator view (no player-specific information) */ export declare function createSpectatorView(state: GameState): PublicState; /** * Sanitize action history to remove sensitive information * (Currently action history doesn't contain card info, but this is for future-proofing) */ export declare function sanitizeActionHistory(state: GameState, _viewerId: string | null): typeof state.actionHistory;