import { HubEntityType } from "../core/types/HubEntityType"; import { IArcGISContext } from "../types/IArcGISContext"; /** * Adds or updates a Hub entity resource depending on whether it * already exists. This util handles delegating to the correct * resource upsert logic based on the entity type. * * @param type - type of the entity to upsert the resource for * @param identifier - id of the entity to upsert the resource for * @param resource - the resource to upsert * @param name - name of the new/existing resource file * @param context - contextual portal and auth information * @param opts.owner - (optional) owner of the resource to add, defaults to the current user if not provided * @param opts.prefix - (optional) folder in which to store the new resource * @throws {HubError} if there is an error during the upsert process or if upserting is not yet implemented for the entity type */ export declare function upsertHubEntityResource(type: HubEntityType, identifier: string, resource: unknown, name: string, context: IArcGISContext, opts?: { owner?: string; prefix?: string; }): Promise;