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<CommonArgs>} [externalArgs] - Optional external arguments to customize the request.
     * @returns {Promise<T>} A Promise of the requested item of type T if such is found, otherwise throws a "NotFound" error.
     */
    static getItem<T extends SdkItem>(contentContext: MixedContentContext, externalArgs?: Partial<CommonArgs>): Promise<T>;
    /**
     * 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<CommonArgs>} [externalArgs] - Optional external arguments to customize the request.
     * @returns {Promise<CollectionResponse<T>>} A promise of the collection of the requested items of type T if such mach the criteria, otherwise an empty collection.
     */
    static getItems<T extends SdkItem>(contentContext: MixedContentContext, externalArgs?: Partial<GetAllArgs>): Promise<CollectionResponse<T>>;
    private static orderItemsManually;
}
