import { z } from 'zod';
import { type ToolName, type ToolArguments, type ExecuteInput, type ExecuteOutput } from '../toolDefinition.js';
import type { NormalizedDeploymentStatus } from './insights/types.js';
/**
 * GetRelatedDeploymentEventsDefinition - Tool definition for fetching related deployment events for comparison.
 */
export declare const getRelatedDeploymentEventsParamsSchema: z.ZodObject<{
    deployment_event_id: z.ZodString;
    limit: z.ZodOptional<z.ZodNumber>;
    filter_status: z.ZodOptional<z.ZodEnum<{
        all: "all";
        passed: "passed";
        failed: "failed";
    }>>;
    include_current: z.ZodOptional<z.ZodBoolean>;
    time_range: z.ZodOptional<z.ZodEnum<{
        recent: "recent";
        day: "day";
        week: "week";
        month: "month";
    }>>;
}, z.core.$strip>;
export declare const relatedDeploymentEventInfoSchema: z.ZodObject<{
    deploymentEventId: z.ZodString;
    status: z.ZodEnum<{
        passed: "passed";
        failed: "failed";
        running: "running";
        cancelled: "cancelled";
    }>;
    eventTime: z.ZodOptional<z.ZodString>;
    revision: z.ZodOptional<z.ZodString>;
    planRunCounts: z.ZodOptional<z.ZodObject<{
        total: z.ZodNumber;
        passed: z.ZodNumber;
        failed: z.ZodNumber;
    }, z.core.$strip>>;
    testRunCounts: z.ZodOptional<z.ZodObject<{
        total: z.ZodNumber;
        passed: z.ZodNumber;
        failed: z.ZodNumber;
    }, z.core.$strip>>;
    passRate: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export declare const deploymentInsightsSchema: z.ZodObject<{
    totalDeployments: z.ZodNumber;
    averagePassRate: z.ZodOptional<z.ZodNumber>;
    consecutivePasses: z.ZodOptional<z.ZodNumber>;
    consecutiveFailures: z.ZodOptional<z.ZodNumber>;
    lastPassedDeployment: z.ZodOptional<z.ZodObject<{
        deploymentEventId: z.ZodString;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            cancelled: "cancelled";
        }>;
        eventTime: z.ZodOptional<z.ZodString>;
        revision: z.ZodOptional<z.ZodString>;
        planRunCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        testRunCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        passRate: z.ZodOptional<z.ZodNumber>;
    }, z.core.$strip>>;
    trend: z.ZodOptional<z.ZodEnum<{
        unknown: "unknown";
        improving: "improving";
        declining: "declining";
        stable: "stable";
    }>>;
}, z.core.$strip>;
export declare const getRelatedDeploymentEventsResponseSchema: z.ZodObject<{
    currentDeployment: z.ZodObject<{
        deploymentEventId: z.ZodString;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            cancelled: "cancelled";
        }>;
        eventTime: z.ZodOptional<z.ZodString>;
        revision: z.ZodOptional<z.ZodString>;
        planRunCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        testRunCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        passRate: z.ZodOptional<z.ZodNumber>;
    }, z.core.$strip>;
    previousDeployments: z.ZodArray<z.ZodObject<{
        deploymentEventId: z.ZodString;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            cancelled: "cancelled";
        }>;
        eventTime: z.ZodOptional<z.ZodString>;
        revision: z.ZodOptional<z.ZodString>;
        planRunCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        testRunCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        passRate: z.ZodOptional<z.ZodNumber>;
    }, z.core.$strip>>;
    insights: z.ZodObject<{
        totalDeployments: z.ZodNumber;
        averagePassRate: z.ZodOptional<z.ZodNumber>;
        consecutivePasses: z.ZodOptional<z.ZodNumber>;
        consecutiveFailures: z.ZodOptional<z.ZodNumber>;
        lastPassedDeployment: z.ZodOptional<z.ZodObject<{
            deploymentEventId: z.ZodString;
            status: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                running: "running";
                cancelled: "cancelled";
            }>;
            eventTime: z.ZodOptional<z.ZodString>;
            revision: z.ZodOptional<z.ZodString>;
            planRunCounts: z.ZodOptional<z.ZodObject<{
                total: z.ZodNumber;
                passed: z.ZodNumber;
                failed: z.ZodNumber;
            }, z.core.$strip>>;
            testRunCounts: z.ZodOptional<z.ZodObject<{
                total: z.ZodNumber;
                passed: z.ZodNumber;
                failed: z.ZodNumber;
            }, z.core.$strip>>;
            passRate: z.ZodOptional<z.ZodNumber>;
        }, z.core.$strip>>;
        trend: z.ZodOptional<z.ZodEnum<{
            unknown: "unknown";
            improving: "improving";
            declining: "declining";
            stable: "stable";
        }>>;
    }, z.core.$strip>;
}, z.core.$strip>;
export declare const GetRelatedDeploymentEventsToolDefinition: import("../toolDefinition.js").ToolDefinition<"get_related_deployment_events", z.ZodObject<{
    deployment_event_id: z.ZodString;
    limit: z.ZodOptional<z.ZodNumber>;
    filter_status: z.ZodOptional<z.ZodEnum<{
        all: "all";
        passed: "passed";
        failed: "failed";
    }>>;
    include_current: z.ZodOptional<z.ZodBoolean>;
    time_range: z.ZodOptional<z.ZodEnum<{
        recent: "recent";
        day: "day";
        week: "week";
        month: "month";
    }>>;
}, z.core.$strip>, undefined, z.ZodObject<{
    currentDeployment: z.ZodObject<{
        deploymentEventId: z.ZodString;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            cancelled: "cancelled";
        }>;
        eventTime: z.ZodOptional<z.ZodString>;
        revision: z.ZodOptional<z.ZodString>;
        planRunCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        testRunCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        passRate: z.ZodOptional<z.ZodNumber>;
    }, z.core.$strip>;
    previousDeployments: z.ZodArray<z.ZodObject<{
        deploymentEventId: z.ZodString;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            cancelled: "cancelled";
        }>;
        eventTime: z.ZodOptional<z.ZodString>;
        revision: z.ZodOptional<z.ZodString>;
        planRunCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        testRunCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        passRate: z.ZodOptional<z.ZodNumber>;
    }, z.core.$strip>>;
    insights: z.ZodObject<{
        totalDeployments: z.ZodNumber;
        averagePassRate: z.ZodOptional<z.ZodNumber>;
        consecutivePasses: z.ZodOptional<z.ZodNumber>;
        consecutiveFailures: z.ZodOptional<z.ZodNumber>;
        lastPassedDeployment: z.ZodOptional<z.ZodObject<{
            deploymentEventId: z.ZodString;
            status: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                running: "running";
                cancelled: "cancelled";
            }>;
            eventTime: z.ZodOptional<z.ZodString>;
            revision: z.ZodOptional<z.ZodString>;
            planRunCounts: z.ZodOptional<z.ZodObject<{
                total: z.ZodNumber;
                passed: z.ZodNumber;
                failed: z.ZodNumber;
            }, z.core.$strip>>;
            testRunCounts: z.ZodOptional<z.ZodObject<{
                total: z.ZodNumber;
                passed: z.ZodNumber;
                failed: z.ZodNumber;
            }, z.core.$strip>>;
            passRate: z.ZodOptional<z.ZodNumber>;
        }, z.core.$strip>>;
        trend: z.ZodOptional<z.ZodEnum<{
            unknown: "unknown";
            improving: "improving";
            declining: "declining";
            stable: "stable";
        }>>;
    }, z.core.$strip>;
}, z.core.$strip>>;
export type GetRelatedDeploymentEventsToolName = ToolName<typeof GetRelatedDeploymentEventsToolDefinition>;
export type GetRelatedDeploymentEventsToolArguments = ToolArguments<typeof GetRelatedDeploymentEventsToolDefinition>;
export type GetRelatedDeploymentEventsToolInput = ExecuteInput<typeof GetRelatedDeploymentEventsToolDefinition>;
export type GetRelatedDeploymentEventsToolOutput = ExecuteOutput<typeof GetRelatedDeploymentEventsToolDefinition>;
export type RelatedDeploymentEventInfo = z.infer<typeof relatedDeploymentEventInfoSchema>;
export type DeploymentInsights = z.infer<typeof deploymentInsightsSchema>;
export type GetRelatedDeploymentEventsResponse = z.infer<typeof getRelatedDeploymentEventsResponseSchema>;
/**
 * Maps API deployment status to normalized status.
 *
 * @param status - The raw status from the API
 * @returns The normalized status
 */
export declare function mapDeploymentStatus(status: string | undefined): NormalizedDeploymentStatus;
//# sourceMappingURL=GetRelatedDeploymentEventsDefinition.d.ts.map