/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { CommentThreadStatus } from "azure-devops-node-api/interfaces/GitInterfaces"; export declare class prCommentsUtils { private gitApi; private connection; private repoId; private pullRequestId; constructor(collectionUrl: string, pullRequestId: number, repoId: string, accessToken: string); /** * Creates or updates a thread on the specified PR based on the threadType. * * Only one thread per threadType will exist on each PR, if a thread with the same type already exists, this will be updated * Pass undefined as a threadType to force the creation of a new one. * * @param message - the message to write on the thread. You can pass HTML * @param threadType - the identifier of your thread */ createOrUpdateThread(message: string, threadType: string | undefined): Promise; /** * Creates or replaces a thread by deleting the existing thread on the specified PR based on the threadType. * * @param message - the message to write on the thread. You can pass HTML * @param threadType - the identifier of your thread */ createOrReplaceThread(message: string, threadType: string | undefined): Promise; /** * Creates a new comment on the existing thread based on the type. * * @param message - the message to write on the thread. You can pass HTML * @param threadType - the identifier of your thread */ appendCommentToThread(message: string, threadType: string): Promise; /** * Updates the status of an existing thread based on the type. * * @param threadType - the identifier of your thread * @param commentThreadStatus - the new value of the thread status */ updateThreadStatus(threadType: string, commentThreadStatus: CommentThreadStatus): Promise; private getThreadByType; } //# sourceMappingURL=PrCommentsUtils.d.ts.map