import type { IUserRequestOptions } from "@esri/arcgis-rest-request"; /** * Given an item, and owner, Search for if the resource exists * and if does, update it, otherwise add it. Returns a url for the item. * * @export * @param {string} id * @param {string} owner * @param {*} resource * @param {string} name * @param {IUserRequestOptions} ro * @param {string} [prefix=""] * @return {*} {Promise} */ export declare function upsertResource(id: string, owner: string, resource: any, name: string, ro: IUserRequestOptions, prefix?: string): Promise;