import { Client } from 'dynamic-yield-client'; import Config from './Contracts/Config'; import Products from './Contracts/Products'; import Subscription from './Contracts/Subscription'; import Trending from './Trending'; declare class TrendingService { /** * * * @type {AssetsManager} */ private assets; /** * * * @type {Client} */ private client; /** * * * @type {Products} */ private products; /** * * * @type {Storage} */ private storage; /** * * * @type {Array} */ private guards; /** * * * @type {SubscriptionManager} */ private subscribers; /** * * * @type {number|undefined} */ private updateEventID?; /** * * * @param {Client} client * @param {Products} products * @param {string} daypart * @return {TrendingService} */ constructor(client: Client, products: Products, daypart: string); /** * * * @param {Subscription} subscription * @return {string} */ subscribe(subscription: Subscription): string; /** * * * @param {string} subscriberId */ unsubscribe(subscriberId: string): void; /** * * * @param {Config} config * @return {Promise} */ start(config: Config): Promise; /** * * * @param {Config} config * @return {Promise} */ update(config: Config): Promise; /** * * * @param {number} slotsCount * @return {Promise<[Trending | null, boolean]>} */ getTrending(slotsCount: number): Promise<[Trending | null, boolean]>; } export default TrendingService;