import type { DeepPartial, Entity, FieldsParam, IssueLinkType, ListParams, Schema } from "../types"; import { ResourceApi } from "./common"; type IssueLinkTypeSchema = Schema; type IssueLinkTypeEntity = Entity; /** * This resource provides operations with issue link types. * https://www.jetbrains.com/help/youtrack/devportal/resource-api-issueLinkTypes.html */ export declare class IssueLinkTypesApi extends ResourceApi { /** * Gets the list of all available link types in the system. * @param params.fields - A list of IssueLinkType attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.top - Optional. The maximum number of entries to return in the response. The server returns a maximum of 42 entries if not specified. * @param params.skip - Optional. The number of entries to skip before returning the first one. * @returns A list of available issue link types. */ getIssueLinkTypes(params?: FieldsParam | ListParams): Promise>; /** * Creates a new issue link type. * @param body - Required fields: name, targetToSource, sourceToTarget. * @param params.fields - A list of IssueLinkType attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The created issue link type. */ createIssueLinkType(body: { name: string; targetToSource: string; sourceToTarget: string; } | DeepPartial, params?: FieldsParam): Promise>; /** * Gets the attributes of the specified issue link type. * @param typeId - The Id of the issue link type. * @param fields - A list of IssueLinkType attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The specified issue link type. */ getIssueLinkType(typeId: string, params?: FieldsParam): Promise>; /** * Updates the specified issue link type. * @param typeId - The ID of the issue link type to update. * @param body - The attributes to update for the issue link type. * @param params.fields - A list of IssueLinkType attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The updated issue link type. */ updateIssueLinkType(typeId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Deletes the link type and its usages. * @param typeId - The Id of the issue link type to delete. * @param params.fields - A list of IssueLinkType attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The response from the deletion operation. */ deleteIssueLinkType(typeId: string, params?: FieldsParam): Promise; } export {};