import { IObservable } from "../../../../base/common/observable.js"; import { IRange } from "../../../../editor/common/core/range.js"; import { IGitHubPullRequestRef } from "../../../services/sessions/common/session.js"; import { URI } from "../../../sessions.web.main.internal.js"; import { IPRReviewState, IPRReviewCommentTarget } from "./codeReviewService.js"; export declare const ICodeReviewService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface ICodeReviewService { readonly _serviceBrand: undefined; /** * Get the observable PR review state for a session. * Returns unresolved review comments from every PR associated with the session. */ getPRReviewState(sessionResource: URI): IObservable; getPRReviewCommentPullRequests(sessionResource: URI, resource: URI): readonly IGitHubPullRequestRef[]; getPRReviewCommentTargets(sessionResource: URI, resource: URI, range: IRange, currentContent: string, pullRequest?: Pick): Promise; createPRReviewComment(target: IPRReviewCommentTarget, body: string): Promise; /** * Resolve a PR review thread on GitHub and remove it from local state. */ resolvePRReviewThread(sessionResource: URI, threadId: string, pullRequest?: Pick): Promise; /** * Mark a PR review comment as locally converted to agent feedback. * The comment is hidden from the PR review state until the session is * cleaned up. */ markPRReviewCommentConverted(sessionResource: URI, commentId: string): void; /** * Dismiss a PR review comment so it no longer appears in the review state. * Used when the user deletes the comment's pending agent-feedback mirror * from the `viewUnreviewedComments` confirmation: without suppressing the * source comment the mirror would be seeded again. Like * {@link markPRReviewCommentConverted} this is a local, in-memory filter that * does not touch GitHub and is reset when the session is cleaned up. */ dismissPRReviewComment(sessionResource: URI, commentId: string): void; }