import type { Entity, FieldsParam, ListParams, Schema, Tag } from "../types"; import { ResourceApi } from "./common"; type TagSchema = Schema; type TagEntity = Entity; /** * Resource that provides access to issues. * https://www.jetbrains.com/help/youtrack/devportal/resource-api-issues.html */ export declare class IssueTagsApi extends ResourceApi { /** * Get all tags added to the issue that are visible to the current user. * @param issueId - The ID of the issue for which to get the tags. * @param params.fields - A list of Tag attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.$skip - Optional. Set the number of returned entities to skip before returning the first one. * @param params.$top - Optional. Specify the maximum number of entries to return in the response. If not set, the server limits the number of returned entries. * @returns A promise that resolves to the list of tags associated with the issue. */ getIssueTags(issueId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Tag the issue with an existing tag. * @param issueId - The ID of the issue to tag. * @param body - Required fields: id - the id of the tag to add to the issue. * @param params.fields - A list of Tag attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns A promise that resolves to the tagged issue with the specified tag. */ addTagToIssue(issueId: string, body: { id: string; }, params?: FieldsParam): Promise>; /** * Read a specific tag added to the issue. * @param issueId - The ID of the issue. * @param tagId - The ID of the tag to retrieve. * @param params.fields - A list of Tag attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns A promise that resolves to the specified tag on the issue. */ getIssueTagById(issueId: string, tagId: string, params?: FieldsParam): Promise>; /** * Remove a specific tag from the issue. * @param issueId - The ID of the issue. * @param tagId - The ID of the tag to remove. * @param params.fields - A list of Tag attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns A promise that resolves to the response after removing the tag. */ deleteIssueTag(issueId: string, tagId: string, params?: FieldsParam): Promise>; } export {};