import type { Entity, FieldsParam, ListParams, Schema, UserGroup } from "../types"; import { ResourceApi } from "./common"; type UserGroupSchema = Schema; type UserGroupEntity = Entity; /** * This resource lets you read the list of user groups and specific user group in YouTrack. * https://www.jetbrains.com/help/youtrack/devportal/resource-api-groups.html */ export declare class GroupsApi extends ResourceApi { /** * Read the list of user groups in YouTrack. * @param params - Optional parameters for the request. * @param params.fields - A list of UserGroup attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.$top - Optional. Lets you specify the maximum number of entries that are returned in the response. * @param params.$skip - Optional. Lets you set a number of returned entities to skip before returning the first one. * @returns The list of user groups. */ getUserGroups(params?: FieldsParam | ListParams): Promise>; /** * Read attributes of the specific user group. * @param groupId - Database ID of the user group in YouTrack. * @param params.fields - A list of UserGroup attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The user group with the specified ID. */ getUserGroupById(groupId: string, params?: FieldsParam): Promise>; } export {};