import Redis from "ioredis"; export declare const PENDING_CANCELLATION_KEY_PREFIX = "pending_cancellation"; /** Redis TTL for cleanup — extended well beyond the admin window so expired entries * can still be scanned and auto-processed by the monitor endpoint. */ export declare const PENDING_CANCELLATION_REDIS_TTL_SECONDS: number; /** Admin review window: 6 hours from the moment the entry is created. */ export declare const PENDING_CANCELLATION_WINDOW_MS: number; export interface PendingCancellationEntry { gameObjectId: string; gameId: number; chainId: number; provider: "lsports" | "optic_odds"; providerStatus: string; gameClock: string | null; gamePeriod: number | undefined; /** Raw provider event snapshot that triggered the cancellation. */ providerEvent: Record; markedAt: number; expiresAt: number; } /** Writes a pending-cancellation entry to Redis for a game, unless one already exists. */ export declare const markGameForPendingCancellation: (redis: Redis, entry: Omit) => Promise<{ created: boolean; }>; export declare const getPendingCancellation: (redis: Redis, gameObjectId: string) => Promise; export declare const deletePendingCancellation: (redis: Redis, gameObjectId: string) => Promise; export declare const isGamePendingCancellation: (redis: Redis, gameObjectId: string) => Promise; /** Scans all pending-cancellation entries whose 4-hour admin window has already expired. */ export declare const scanExpiredPendingCancellations: (redis: Redis) => Promise; /** Scans ALL pending-cancellation entries regardless of expiry status. */ export declare const scanAllPendingCancellations: (redis: Redis) => Promise;