import { HubEntityType } from "../core/types/HubEntityType"; import { IArcGISContext } from "../types/IArcGISContext"; /** * Adds a Hub entity resource. This util handles delegating * to the correct resource add logic based on the entity type. * * @param type - type of the entity to add the resource for * @param identifier - id of the entity to add the resource for * @param resource - the resource to add * @param name - name of the new 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 add process or if adding is not yet implemented for the entity type */ export declare function addHubEntityResource(type: HubEntityType, identifier: string, resource: unknown, name: string, context: IArcGISContext, opts?: { owner?: string; prefix?: string; }): Promise;