import { IHttpService } from '@kentico/kontent-core'; import { IDeliveryClientConfig } from '../config'; import { Contracts } from '../contracts'; import { Responses, IContentItem, IContentTypeQueryConfig, IGroupedNetworkResponse, IItemQueryConfig, IDeliveryNetworkResponse, ILanguagesQueryConfig, ITaxonomyQueryConfig } from '../models'; import { IKontentListAllResponse, IKontentListResponse, IListAllQueryConfig, ISDKInfo } from '../models/common/common-models'; import { BaseDeliveryQueryService } from './base-delivery-query.service'; import { IMappingService } from './mapping.service'; export declare class QueryService extends BaseDeliveryQueryService { constructor(config: IDeliveryClientConfig, httpService: IHttpService, sdkInfo: ISDKInfo, mappingService: IMappingService); /** * Gets single item from given url * @param url Url used to get single item * @param queryConfig Query configuration */ getSingleItemAsync(url: string, queryConfig: IItemQueryConfig): Promise, Contracts.IViewContentItemContract>>; /** * Gets single feed response. Might not contain all items in your project. * @param url Url * @param queryConfig Query configuration */ getItemsFeed(url: string, queryConfig: IItemQueryConfig): Promise, Contracts.IItemsFeedContract>>; /** * Gets multiple items from given url * @param url Url used to get multiple items * @param queryConfig Query configuration */ getMultipleItems(url: string, queryConfig: IItemQueryConfig): Promise, Contracts.IListContentItemsContract>>; /** * Gets single content type from given url * @param url Url used to get single type * @param queryConfig Query configuration */ getSingleType(url: string, queryConfig: IContentTypeQueryConfig): Promise>; /** * Gets multiple content types from given url * @param url Url used to get multiple types * @param queryConfig Query configuration */ getMultipleTypes(url: string, queryConfig: IContentTypeQueryConfig): Promise>; /** * Gets languages * @param url Url * @param queryConfig Query configuration */ getLanguages(url: string, queryConfig: ILanguagesQueryConfig): Promise>; /** * Gets single taxonomy from given url * @param url Url used to get single taxonomy * @param queryConfig Query configuration */ getTaxonomy(url: string, queryConfig: ITaxonomyQueryConfig): Promise>; /** * Gets multiple taxonomies from given url * @param url Url used to get multiple taxonomies * @param queryConfig Query configuration */ getTaxonomies(url: string, queryConfig: ITaxonomyQueryConfig): Promise>; /** * Gets single content type element from given url * @param url Url used to get single content type element * @param queryConfig Query configuration */ getElementAsync(url: string, queryConfig: ITaxonomyQueryConfig): Promise>; getListAllResponse(data: { page: number; getResponse: (nextPageUrl?: string, continuationToken?: string) => Promise>; allResponseFactory: (items: any[], responses: IDeliveryNetworkResponse[]) => IGroupedNetworkResponse; listQueryConfig?: IListAllQueryConfig; }): Promise>; private getListAllResponseInternalAsync; private sleep; }