import { ILogger } from "../logging/ILogger.js"; import { IPlatform } from "../platform/IPlatform.js"; import { IClientContext } from "./IClientContext.js"; /** * The client context provides basic configuration and platform support which are required * when building SDK components. */ export default class ClientContext implements IClientContext { readonly sdkKey: string; readonly platform: IPlatform; fullSyncInterval?: number; maxCachedUsers?: number; userCacheTtl?: number; flushInterval: number; maxEventsInQueue: number; offline: boolean; logger: ILogger; eventsUri: string; pollingUri: string; streamingUri: string; constructor(sdkKey: string, configuration: { fullSyncInterval?: number; maxCachedUsers?: number; userCacheTtl?: number; logger?: ILogger; offline?: boolean; flushInterval: number; maxEventsInQueue: number; streamingUri: string; pollingUri: string; eventsUri: string; }, platform: IPlatform); }