import type { Octokit } from 'octokit'; import type { EventBus } from '../events/bus'; import type { EmitContext } from '../events/emit'; import type { PrIdent } from '../events/schema'; export type PrResult = { pr: PrIdent; action: 'opened' | 'updated' | 'noop'; headBranch: string; baseBranch: string; title: string; }; export type OpenPrInfo = { pr: PrIdent; title: string; headBranch: string; headSha: string; baseBranch: string; isDraft: boolean; }; export type MergedPrInfo = { number: number; title: string; url?: string; headBranch: string; baseBranch: string; mergedAt: string; }; export declare function openOrUpdatePr(options: { owner: string; repo: string; headBranch: string; baseBranch: string; title: string; body: string; token?: string; octokit?: Octokit; bus?: EventBus; context: EmitContext; }): Promise; export declare function requestReviewers(options: { pr: PrIdent; reviewers: string[]; requestCopilot: boolean; token?: string; octokit?: Octokit; bus?: EventBus; context: EmitContext; }): Promise; export declare function findMergedPr(options: { owner: string; repo: string; headBranch: string; token?: string; octokit?: Octokit; bus?: EventBus; context: EmitContext; }): Promise; export declare function listOpenPullRequests(options: { owner: string; repo: string; token?: string; octokit?: Octokit; bus?: EventBus; context: EmitContext; }): Promise;