import { ApiConfig, EntityResponse, EventResponse, OnNext, OnError, EventPushResponse, EntityPushResponse, Observer, EntityCountResponse, EventCountResponse, MarketResponse, MarketPushResponse, MarketCountResponse, GameIncidentResponse } from "./contracts"; import { Query, Format } from "./query"; import { Market, SelectionId } from "./contracts-vnext"; import * as entities from "sbtech-sports-data-api-contracts"; import { sbtFetch, TokenConfig, tokenService } from 'sbtech-general-api-client'; export { sbtFetch, TokenConfig, tokenService }; export declare enum Endpoint { Events = "events", Markets = "markets", Leagues = "leagues", Sports = "sports", Regions = "regions", Selections = "selections", /** Obsolete endpoint, please migrate to /gameincidents */ Incidents = "incidents", /** Please use this endpoint instead of obsolete /incidents */ GameIncidents = "gameincidents" } export declare class SportsDataApiClient { private readonly config; events: EntityEndpoint, EventPushResponse, EventCountResponse, EventResponse, EventResponse, EventResponse>; markets: EntityEndpoint, MarketPushResponse, MarketCountResponse, MarketResponse, MarketResponse, MarketResponse>; leagues: EntityEndpoint, EntityPushResponse, EntityCountResponse, EntityResponse, EntityResponse, EntityResponse>; regions: EntityEndpoint, EntityPushResponse, EntityCountResponse, EntityResponse, EntityResponse, EntityResponse>; sports: EntityEndpoint, EntityPushResponse, EntityCountResponse, EntityResponse, EntityResponse, EntityResponse>; incidents: EntityEndpoint, EntityPushResponse, EntityCountResponse, EntityResponse, EntityResponse, EntityResponse>; gameIncidents: GameIncidentEndpoint; selections: EntityEndpoint, EntityPushResponse, EntityCountResponse, EntityResponse, EntityResponse, EntityResponse>; constructor(config: ApiConfig, events?: EntityEndpoint, EventPushResponse, EventCountResponse, EventResponse, EventResponse, EventResponse>, markets?: EntityEndpoint, MarketPushResponse, MarketCountResponse, MarketResponse, MarketResponse, MarketResponse>, leagues?: EntityEndpoint, EntityPushResponse, EntityCountResponse, EntityResponse, EntityResponse, EntityResponse>, regions?: EntityEndpoint, EntityPushResponse, EntityCountResponse, EntityResponse, EntityResponse, EntityResponse>, sports?: EntityEndpoint, EntityPushResponse, EntityCountResponse, EntityResponse, EntityResponse, EntityResponse>, incidents?: EntityEndpoint, EntityPushResponse, EntityCountResponse, EntityResponse, EntityResponse, EntityResponse>, gameIncidents?: GameIncidentEndpoint, selections?: EntityEndpoint, EntityPushResponse, EntityCountResponse, EntityResponse, EntityResponse, EntityResponse>); } export declare class GameIncidentEndpoint { private readonly config; constructor(config: ApiConfig); endpoint: Endpoint; /** * @param eventIds - comma separated event ids * @param incidentTypes - comma separated IncidentType enum values * @param top - int top value * @param skip - int skip value * @param format - application/json or application/msgpack */ pull(eventIds: string, incidentTypes?: string, top?: number, skip?: number, format?: Format): Promise>; /** * * @param incidentId - incident id (int value) * @param format - application/json or application/msgpack */ pullByIncidentId(incidentId: number, format?: Format): Promise>; /** * * @param eventIds - comma separated event ids * @param onNext * @param onError * @param incidentTypes - comma separated IncidentType enum values */ subscribe(eventIds: string, onNext: OnNext, onError?: OnError, incidentTypes?: string, format?: Format): Observer; } export declare class EntityEndpoint { private readonly endpoint; private readonly config; constructor(endpoint: Endpoint, config: ApiConfig); pull(query: Query): Promise; count(query: Query): Promise; pullCompact(query: Query): Promise; pullOnlyId(query: Query): Promise; pullToteDetails(query: Query): Promise; subscribe(query: Query, onNext: OnNext, onError?: OnError): Observer; private composePullUrl; private decodePullCountResponse; private decodePullResponse; }