/** * Compatibility helpers and type guards for ban-chess.ts * Helps with migration from direct property access to flags-based API */ import { ActionResult, GameFlags } from './types.js'; /** * Type guard to check if an ActionResult has the new flags property */ export declare function hasGameFlags(result: ActionResult): result is ActionResult & { flags: GameFlags; }; /** * Type guard to check if using deprecated properties * @deprecated These properties are deprecated, use flags instead */ export declare function isUsingDeprecatedAPI(result: ActionResult): boolean; /** * Helper to safely get game state from ActionResult * Works with both old and new API */ export declare function getGameState(result: ActionResult): GameFlags; /** * Migration helper that logs deprecation warnings */ export declare function migrateActionResult(result: ActionResult): ActionResult; /** * Type-safe getter with deprecation warning */ export declare function isCheckmate(result: ActionResult): boolean; /** * Type-safe getter for game over state */ export declare function isGameOver(result: ActionResult): boolean; //# sourceMappingURL=compatibility.d.ts.map