import { MixedContentContext } from '../editor/widget-framework/mixed-content-context'; import { CommonArgs } from '../rest-sdk/args/common.args'; import { GetAllArgs } from '../rest-sdk/args/get-all.args'; import { CollectionResponse } from '../rest-sdk/dto/collection-response'; import { SdkItem } from '../rest-sdk/dto/sdk-item'; /** * RestClientForContext is a class that provides methods to retrieve content items from the value of a property from type {MixedContentContext}. * It is used when working with properties of type {MixedContentContext} in the entity of a widget. */ export declare class RestClientForContext { /** * Retrieves a single item of type T defined by the value of a MixedContentContext object. * @param {MixedContentContext} contentContext - The context containing the content data describing the item to be retrieved. * @param {Partial} [externalArgs] - Optional external arguments to customize the request. * @returns {Promise} A Promise of the requested item of type T if such is found, otherwise throws a "NotFound" error. */ static getItem(contentContext: MixedContentContext, externalArgs?: Partial): Promise; /** * Retrieves a collection of items of type T defined by the value of a MixedContentContext object. * @param {MixedContentContext} contentContext - The context containing the content data describing the item to be retrieved. * @param {Partial} [externalArgs] - Optional external arguments to customize the request. * @returns {Promise>} A promise of the collection of the requested items of type T if such mach the criteria, otherwise an empty collection. */ static getItems(contentContext: MixedContentContext, externalArgs?: Partial): Promise>; private static orderItemsManually; }