import { Comment, CommentThreadStatus, GitPullRequestCommentThread } from 'azure-devops-node-api/interfaces/GitInterfaces'; import { Logger } from 'winston'; /** * Service to call AzureDevops API about PR */ export declare class PullRequestService { private readonly project; private readonly logger; private readonly connection; constructor(token: string, project: string, orgUrl: string, logger: Logger); /** * Remove all commments to a thread to make it disappear on the UI * @param repoName Repository name * @param pullRequestId Pull Request ID * @param threadId Id of the thread to be removed */ deleteThread(repoName: string, pullRequestId: number, threadId: number): Promise; /** * Add a comment to a thread * @param repoName Repository name * @param pullRequestId Pull Request ID * @param thread Thread to be removed * @param comment Comment to be added */ addCommentToThread(repoName: string, pullRequestId: number, thread: GitPullRequestCommentThread, comment: string): Promise; /** * Add a new thread * @param repoName Repository name * @param pullRequestId Pull Request ID * @param comment Comment to be added * @param status Comment status * @param threadIdentifier Thread identifier */ addThread(repoName: string, pullRequestId: number, comment: string, status: CommentThreadStatus, threadIdentifier?: string): Promise; /** * Find threads filtering by identifier * @param repoName Repository name * @param pullRequestId Pull Request ID * @param threadIdentifier Thread identifier */ findThreadsByIdentifier(repoName: string, pullRequestId: number, threadIdentifier: string): Promise; } //# sourceMappingURL=pull-requests.d.ts.map