import type { IUserRequestOptions } from "@esri/arcgis-rest-request";
import { IAddGroupMembersResult } from "./types/types";
/**
 * Add or invite N users to a single group.
 * If autoAdd is true (if the user doing the adding has the 'portal:admin:assignToGroups' priv)
 * then we attempt to auto add EVERY user to the group.
 * If that call fails, then we attempt to invite them.
 *
 * @export
 * @param {string} groupId ID of the group the users will be added to
 * @param {string[]} usernames usernames of the users to add
 * @param {IUserRequestOptions} auth Auth
 * @param {boolean} autoAdd should we auto add users?
 * @return {*}  {Promise<IAddGroupMembersResult>}
 */
export declare function addGroupMembers(groupId: string, usernames: string[], auth: IUserRequestOptions, autoAdd: boolean): Promise<IAddGroupMembersResult>;
