import type { IUserRequestOptions } from "@esri/arcgis-rest-request";
import { IModel } from "../hub-types";
/**
 * Takes an IModel and an array of resources and upserts them to the
 * backing item. Then searches for the resources that were upserted
 * and attaches them to the model, which is returned.
 *
 * @export
 * @param {IModel} model
 * @param {Array<{
 *     resource: Record<string, any>;
 *     filename: string;
 *   }>} resources
 * @param {IUserRequestOptions} requestOptions
 * @return {*}  {Promise<IModel>}
 */
export declare function upsertModelResources(model: IModel, resources: Array<{
    resource: Record<string, any>;
    filename: string;
}>, requestOptions: IUserRequestOptions): Promise<IModel>;
