import { IDeliveryClientConfig } from '../../config'; import { IGroupedNetworkResponse, IKontentListAllResponse, IKontentListResponse, IDeliveryNetworkResponse, IListAllQueryConfig, IQueryConfig, IContentItem, ClientTypes, IUsedInItemRecord, IContentType, ITaxonomyGroup, IContentItemDelta, ILanguage } from '../../models'; import { QueryService } from '../../services'; import { BaseQuery } from './base-query.class'; type ListingRecord = IContentItem | IContentItemDelta | IUsedInItemRecord | IContentType | ILanguage | ITaxonomyGroup; export declare abstract class BaseListingQuery, TResponse extends IKontentListResponse, TAllResponse extends IKontentListAllResponse, TQueryConfig extends IQueryConfig, TContract> extends BaseQuery { protected config: IDeliveryClientConfig; protected queryService: QueryService; constructor(config: IDeliveryClientConfig, queryService: QueryService); /** * Sets continuation token header */ withContinuationToken(token: string): this; /** * Query to get all items. Uses paging data and may execute multiple HTTP requests depending on number of items */ toAllPromise(queryAllConfig?: IListAllQueryConfig): Promise>; protected abstract allResponseFactory(items: TRecord[], responses: IDeliveryNetworkResponse[]): TAllResponse; } export {};