import type { ApiContext } from "./context.js"; import type { RestReviewerGroup } from "../generated/types.js"; export interface ListReviewerGroupsParams { project?: string; repository: string; } export interface CreateReviewerGroupParams { project?: string; repository: string; name: string; description?: string; reviewers: string[]; } export interface DeleteReviewerGroupParams { project?: string; repository: string; name: string; } export type ReviewerGroup = RestReviewerGroup & { id: number; name: string; }; export declare function reviewerGroupsApi(ctx: ApiContext): { list({ project, repository, }: ListReviewerGroupsParams): Promise; create(params: CreateReviewerGroupParams): Promise; delete(params: DeleteReviewerGroupParams): Promise<{ deleted: true; name: string; }>; }; export type ReviewerGroupsApi = ReturnType;