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, IGitHubPullRequest, IGitHubPullRequestMergeability, IGitHubPullRequestReview } from "../../common/types.js"; import { GitHubPRFetcher } from "../fetchers/githubPRFetcher.js"; import { GitHubApiClient } from "../githubApiClient.js"; import { IPullRequestIconCache } from "../pullRequestIconCache.service.js"; export declare class GitHubPullRequestModelReferenceCollection extends ReferenceCollection { private readonly _logService; private readonly _iconCache; private readonly _fetcher; constructor(apiClient: GitHubApiClient, _logService: ILogService, _iconCache: IPullRequestIconCache); protected createReferencedObject(key: string, owner: string, repo: string, prNumber: number): GitHubPullRequestModel; protected destroyReferencedObject(key: string, object: GitHubPullRequestModel): void; } /** Pull request metadata and mergeability with coalesced refresh and periodic polling. */ export declare class GitHubPullRequestModel extends Disposable { readonly owner: string; readonly repo: string; readonly prNumber: number; private readonly _fetcher; private readonly _logService; private readonly _iconCache; private readonly _token; private readonly _pullRequest; readonly pullRequest: IObservable; private readonly _reviews; readonly reviews: IObservable; private readonly _mergeability; readonly mergeability: IObservable; private _refreshPromise; private _refreshPriority; private _refreshVersion; private readonly _pollScheduler; private readonly _pollingDisposables; constructor(owner: string, repo: string, prNumber: number, _fetcher: GitHubPRFetcher, _logService: ILogService, _iconCache: IPullRequestIconCache); /** Refreshes pull request metadata, reviews, and mergeability. */ refresh(options?: ApiRequestOptions): Promise; /** * Post a top-level issue comment on the PR. */ postIssueComment(body: string): Promise; /** * Post a review comment on a line in the pull request head. */ postReviewComment(body: string, commitId: string, path: string, line: number, startLine: number | undefined, pendingReview?: Pick): Promise; /** * Start periodic polling. Each cycle refreshes all PR data. */ startPolling(intervalMs?: number): IDisposable; private _poll; private _refresh; }