import type { Octokit } from 'octokit'; import type { EventBus } from '../events/bus'; import type { EmitContext } from '../events/emit'; import type { CiStatus, PrIdent } from '../events/schema'; export type CiResult = CiStatus; export declare function getCiStatus(options: { owner: string; repo: string; headSha: string; pr: PrIdent; token?: string; octokit?: Octokit; bus?: EventBus; context: EmitContext; }): Promise; export declare function waitForCi(options: { owner: string; repo: string; headBranch: string; token?: string; octokit?: Octokit; pollIntervalMs: number; timeoutMs: number; onHeartbeat?: () => Promise; sleep?: (durationMs: number) => Promise; bus?: EventBus; context: EmitContext; }): Promise;