import { Contracts } from '../../contracts'; import { IDeliveryClientConfig } from '../../config'; import { IContentItem, IItemQueryConfig, IDeliveryNetworkResponse, Responses } from '../../models'; import { QueryService } from '../../services'; import { BaseListingQuery } from '../common/base-listing-query.class'; export declare class ItemsFeedQuery extends BaseListingQuery, Responses.IListItemsFeedAllResponse, IItemQueryConfig, Contracts.IItemsFeedContract> { protected config: IDeliveryClientConfig; protected queryService: QueryService; protected _queryConfig: IItemQueryConfig; constructor(config: IDeliveryClientConfig, queryService: QueryService); /** * Gets only item of given type * @param type Codename of type to get */ type(type: string): this; /** * Gets items of given types (logical or) * I.e. get items of either 'Actor' or 'Movie' type * @param types Types to get */ types(types: string[]): this; /** * Gets only item from given collection * @param collection Codename of collection to get */ collection(collection: string): this; /** * Gets items from given collections (logical or) * I.e. get items of either 'default' or 'christmas-campaign' collection * @param collections Collections to get */ collections(collections: string[]): this; /** * Language codename * @param languageCodename Codename of the language */ languageParameter(languageCodename: string): this; /** * Used to limit the number of elements returned by query. * @param elementCodenames Array of element codenames to fetch */ elementsParameter(elementCodenames: string[]): this; toPromise(): Promise, Contracts.IItemsFeedContract>>; getUrl(): string; /** * Used to configure query * @param queryConfig Query configuration */ queryConfig(queryConfig: IItemQueryConfig): this; map(json: any): Responses.IListItemsFeedResponse; protected allResponseFactory(items: any[], responses: IDeliveryNetworkResponse, Contracts.IItemsFeedContract>[]): Responses.IListItemsFeedAllResponse; }