import type { IssueStatus } from "../../types/common.schema.js"; /** * Service for detecting Copilot status changes on issues * Implements the same logic as bash version for status transitions */ export declare class CopilotDetectionService { /** * Detect if Copilot has completed work or if status should be updated * Based on bash version: scripts/hubLaunch/lib/interactive-lib.sh:detect_copilot_completion * * Status transitions: * - unassigned → initialWaiting: When Copilot gets assigned * - initialWaiting → ready: When Copilot requests review or marks PR ready * - ready → waiting: When user comments with @copilot * - waiting → ready: When Copilot responds to user's request */ detectStatusChange(issueNumber: number, currentStatus: IssueStatus): Promise; /** * Check if Copilot is assigned to the issue */ private isCopilotAssigned; /** * Find PR created by Copilot for this issue */ private findCopilotPR; /** * Check if Copilot's work is ready for review * Checks for: review requests, ready_for_review event, or "finished work" comment */ private isCopilotWorkReady; /** * Check if user commented with @copilot after Copilot's last comment */ private isWaitingForCopilotResponse; /** * Check if Copilot has responded after user's @copilot mention */ private hasCopilotResponded; } //# sourceMappingURL=CopilotDetectionService.d.ts.map