export interface DeploymentStatusResult { status: "pending" | "success" | "failed"; timestamp?: string; } interface Comment { author: string; body: string; createdAt: string; } /** * Service for detecting deployment status from PR comments * Parses Vercel bot comments to determine deployment status */ export declare class DeploymentDetectionService { /** * Detect deployment status from PR comments * Looks for Vercel bot comments indicating deployment success or failure */ detectDeploymentStatus(comments: Comment[]): DeploymentStatusResult; /** * Check if we should notify Copilot about a deployment failure * * Returns true if: * - Deployment status is "failed" AND * - Either no previous notification exists OR * - The deployment failure timestamp is newer than the last notification timestamp * * This allows multiple notifications if deployment fails again after a fix attempt, * while preventing duplicate notifications for the same failure. * * @param deploymentStatus The current deployment status with optional timestamp * @param deploymentNotifiedAt ISO timestamp of when Copilot was last notified * @returns true if Copilot should be notified about this failure */ shouldNotifyCopilot(deploymentStatus: DeploymentStatusResult, deploymentNotifiedAt?: string): boolean; } export {}; //# sourceMappingURL=DeploymentDetectionService.d.ts.map