export type Projects = 'assistant' | 'spfx' | 'webapi'; export type ReviewerVote = -10 | -5 | 0 | 5 | 10; export declare const ReviewerVoteValues: { readonly Approved: 10; readonly ApprovedWithSuggestions: 5; readonly NoVote: 0; readonly Rejected: -10; readonly WaitingForAuthor: -5; }; export interface IReviewer { displayName: string; hasDeclined: boolean; isFlagged: boolean; isRequired: boolean; uniqueName: string; vote: ReviewerVote; } export interface IPullRequest { closedDate?: string; createdBy: { displayName: string; uniqueName: string; }; creationDate: string; isDraft: boolean; pullRequestId: number; reviewers: IReviewer[]; status: string; title: string; targetRefName: string; url: string; } export interface IThread { comments: { author: { displayName: string; uniqueName: string; }; commentType: string; content: string; lastContentUpdatedDate: string; lastUpdatedDate: string; publishedDate: string; }[]; id: number; isDeleted: boolean; lastUpdatedDate: string; publishedDate: string; status?: string; } export interface IPullRequestResponse { count: number; value: IPullRequest[]; } export interface IThreadResponse { count: number; value: IThread[]; } export declare const getProjectUrl: (project: Projects) => [string, string]; export declare const getThread: (pullRequestId: number, project: Projects, key: string) => Promise; export declare const getPullRequests: (project: Projects, key: string, parameters?: string[]) => Promise;