import type { Entity, FieldsParam, ListParams, MuteUpdateNotificationsParam, Schema, Issue, IssueLink, DeepPartial } from "../types"; import { ResourceApi } from "./common"; type IssueSchema = Schema; type IssueLinkSchema = Schema; type IssueEntity = Entity; type IssueLinkEntity = Entity; /** * Resource that provides access to issues. * https://www.jetbrains.com/help/youtrack/devportal/resource-api-issues.html */ export declare class IssueLinksApi extends ResourceApi { /** * Get the list of links for the issue. * @param issueId - The ID of the issue to retrieve links for. * @param params.fields - A list of IssueLink attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.$top - Optional. Specifies the maximum number of entries to return in the response. * @param params.$skip - Optional. Specifies the number of entities to skip before returning the first one. * @returns A promise that resolves to the list of issue links. */ getIssueLinks(issueId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Get the data for a specific link of the issue. * @param issueId - The ID of the issue. * @param linkId - The database ID of the issue link. * @param params.fields - A list of IssueLink 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 issue link data. */ getIssueLinkById(issueId: string, linkId: string, params?: FieldsParam): Promise>; /** * Get all issues that are linked to the current one with this link type. * @param issueId - The ID of the issue. * @param linkId - The database ID of the link type. * @param params.fields - A list of Issue attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.top - Optional. Specifies 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 A promise that resolves to the list of linked issues. */ getLinkedIssues(issueId: string, linkId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Link the current issue to another issue. * @param issueId - The ID of the current issue. * @param linkId - The database ID of the link type (with direction markers if applicable). * @param body - Required fields: id - the database ID of the issue you're linking to the current one. * @param params.fields - A list of Issue attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.muteUpdateNotifications - Set to true to avoid sending notifications for this update. * @returns A promise that resolves to the updated issue. */ linkIssue(issueId: string, linkId: string, body: { linkedIssueId: string; } & DeepPartial, params?: FieldsParam & MuteUpdateNotificationsParam): Promise>; /** * Delete the link between issues. * @param issueId - The ID of the current issue. * @param linkId - The database ID of the link type (with direction markers if applicable). * @param linkedIssueId - The database ID of the issue to unlink from the current one. * @param params.fields - A list of Issue 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 updated issue. */ unlinkIssue(issueId: string, linkId: string, linkedIssueId: string, params?: FieldsParam): Promise>; } export {};