import { SmarticoAPI } from '../SmarticoAPI'; /** @hidden */ export declare const CACHE_DATA_SEC = 30; /** @hidden */ export declare const JACKPOT_TEMPLATE_CACHE_SEC = 30; /** @hidden */ export declare const JACKPOT_POT_CACHE_SEC = 1; /** @hidden */ export declare const JACKPOT_WINNERS_CACHE_SEC = 30; /** @hidden */ export declare const JACKPOT_ELIGIBLE_GAMES_CACHE_SEC = 30; /** @hidden */ export declare enum onUpdateContextKey { Saw = "saw", Missions = "missions", TournamentList = "tournamentList", InboxMessages = "inboxMessages", Badges = "badges", Levels = "levels", StoreItems = "storeItems", StoreCategories = "storeCategories", AchCategories = "achCategories", LeaderBoards = "leaderBoards", LevelExtraCounters = "levelExtraCounters", Segments = "segments", StoreHistory = "storeHistory", Jackpots = "jackpots", Pots = "Pots", CustomSections = "customSections", Bonuses = "bonuses", Clans = "clans", SAWHistory = "sawHistory", JackpotWinners = "jackpotWinners", Raffles = "raffles", JackpotEligibleGames = "jackpotEligibleGames", CurrentLevel = "currentLevel", InboxUnreadCount = "inboxUnreadCount", ActivityLog = "activityLog", AvatarsList = "avatarsList", AvatarsCustomized = "avatarsCustomized", AvatarPrompts = "avatarPrompts" } /** * Abstract base of the SDK's public surface. Holds the shared state * (`api`, `userExtId`, `onUpdateCallback` map) and the generic cache / * subscription helper (`updateEntity`). Domain-specific methods live on * subclasses; the terminator `WSAPI` class composes the whole chain. * * **Consumers should not instantiate this directly** — the SDK constructs * the concrete `WSAPI` via `_smartico.api`. * * @hidden */ export declare abstract class WSAPIBase { protected api: SmarticoAPI; /** @hidden */ protected onUpdateCallback: Map void>; /** @hidden */ protected userExtId: string; /** @private */ constructor(api: SmarticoAPI, userExtId?: string); /** @private */ clearCaches(): void; /** * Generic cache-update + subscription-notify helper. Used by domain * classes' `update*` methods to refresh a context and fire any * registered `onUpdate` callback. * @hidden */ protected updateEntity(contextKey: onUpdateContextKey, payload: any): Promise; }