import type { GhWrapper, IssueRef } from '@generacy-ai/cockpit'; import { type CockpitEvent } from './diff.js'; import { type SnapshotMap } from './snapshot.js'; export interface PollDeps { gh: GhWrapper; /** Refs resolved from the epic body for this tick. */ refs: IssueRef[]; /** `owner/repo` of the epic itself — used only as the zero-refs fallback query target. */ epicOwnerRepo: string; safetyCap?: number; pageSize?: number; logger?: { warn: (msg: string) => void; debug?: (msg: string) => void; }; now?: () => string; cycleNumber?: number; } export interface PollResult { curr: SnapshotMap; events: CockpitEvent[]; } /** * Run one poll cycle: list issues per repo, classify, snapshot, fetch PR checks, * derive PR lifecycle, compute transitions vs `prev`. * * Pure over its deps — all I/O goes through `deps.gh`. The shell (`watch.ts`) * owns the loop, sleep, resolver call, and signal handling. */ export declare function runOnePoll(prev: SnapshotMap, deps: PollDeps): Promise; //# sourceMappingURL=poll-loop.d.ts.map