import { Disposable, IDisposable, ReferenceCollection } from "../../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../../base/common/observable.js"; import { ILogService } from "../../../../../platform/log/common/log.service.js"; import { ApiRequestOptions } from "@codingame/monaco-vscode-github-service-override/vscode/vs/platform/github/common/client/request"; import { IGitHubPRComment, IGitHubPullRequestReviewThread } from "../../common/types.js"; import { GitHubApiClient } from "../githubApiClient.js"; import { GitHubPRFetcher } from "../fetchers/githubPRFetcher.js"; export declare class GitHubPullRequestReviewThreadsModelReferenceCollection extends ReferenceCollection { private readonly _logService; private readonly _fetcher; constructor(apiClient: GitHubApiClient, _logService: ILogService); protected createReferencedObject(key: string, owner: string, repo: string, prNumber: number): GitHubPullRequestReviewThreadsModel; protected destroyReferencedObject(key: string, object: GitHubPullRequestReviewThreadsModel): void; } /** Review threads with refresh and polling independent of pull request metadata. */ export declare class GitHubPullRequestReviewThreadsModel extends Disposable { readonly owner: string; readonly repo: string; readonly prNumber: number; private readonly _fetcher; private readonly _logService; private readonly _token; private readonly _reviewThreads; readonly reviewThreads: IObservable; private readonly _hasLoaded; readonly hasLoaded: IObservable; private readonly _initialRefreshCompleted; readonly initialRefreshCompleted: IObservable; private _refreshPromise; private _refreshPriority; private _refreshVersion; private _pollingClientCount; private readonly _pollScheduler; constructor(owner: string, repo: string, prNumber: number, _fetcher: GitHubPRFetcher, _logService: ILogService); /** Refreshes review threads. */ refresh(force?: boolean, options?: ApiRequestOptions): Promise; private _refresh; /** * Post a reply to an existing review thread and refresh threads. */ postReviewComment(body: string, inReplyTo: number): Promise; /** * Resolve a review thread and refresh the thread list. */ resolveThread(threadId: string): Promise; /** * Start periodic polling. Each cycle refreshes review thread data. */ startPolling(intervalMs?: number): IDisposable; private _poll; }