import type { IUser } from "@esri/arcgis-rest-portal"; import { IGroupsByMembership } from "./types/IGroupsByMembership"; /** * Retrieves the user's groups categorized by their membership type. * * @param user - The user object containing group information. * @returns An object categorizing the user's groups into `owner`, `admin`, and `member`. * * The function processes the user's groups and classifies them based on the membership type: * - `owner`: Groups where the user is an owner. * - `admin`: Groups where the user is an admin. * - `member`: Groups where the user is a member and the group is not view-only. * * Note: The `none` membership type is not considered as it is not expected to be present in the user's groups. */ export declare function getUserGroupsByMembership(user: IUser): IGroupsByMembership;