import { z } from 'zod';
import { type ToolName, type ToolArguments, type ExecuteInput, type ExecuteOutput } from '../toolDefinition.js';
/**
 * GetRelatedPlanRunsDefinition - Tool definition for fetching historical plan runs for comparison.
 */
export declare const getRelatedPlanRunsParamsSchema: z.ZodObject<{
    plan_run_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>;
    include_ad_hoc: z.ZodOptional<z.ZodBoolean>;
    time_range: z.ZodOptional<z.ZodEnum<{
        recent: "recent";
        day: "day";
        week: "week";
        month: "month";
    }>>;
}, z.core.$strip>;
/**
 * Simplified status for plan runs.
 */
export type SimplifiedPlanRunStatus = 'passed' | 'failed' | 'running' | 'cancelled' | 'terminated';
export declare const planRunInfoSchema: z.ZodObject<{
    planRunId: z.ZodString;
    status: z.ZodEnum<{
        passed: "passed";
        failed: "failed";
        running: "running";
        cancelled: "cancelled";
        terminated: "terminated";
    }>;
    startTime: z.ZodOptional<z.ZodString>;
    endTime: z.ZodOptional<z.ZodString>;
    durationMs: z.ZodOptional<z.ZodNumber>;
    testCounts: z.ZodOptional<z.ZodObject<{
        total: z.ZodNumber;
        passed: z.ZodNumber;
        failed: z.ZodNumber;
    }, z.core.$strip>>;
    passRate: z.ZodOptional<z.ZodNumber>;
    triggerType: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const planRunInsightsSchema: z.ZodObject<{
    totalRuns: z.ZodNumber;
    averagePassRate: z.ZodOptional<z.ZodNumber>;
    averageDurationMs: z.ZodOptional<z.ZodNumber>;
    minDurationMs: z.ZodOptional<z.ZodNumber>;
    maxDurationMs: z.ZodOptional<z.ZodNumber>;
    consecutivePasses: z.ZodOptional<z.ZodNumber>;
    consecutiveFailures: z.ZodOptional<z.ZodNumber>;
    lastPassedRun: z.ZodOptional<z.ZodObject<{
        planRunId: z.ZodString;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            cancelled: "cancelled";
            terminated: "terminated";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        endTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        testCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        passRate: z.ZodOptional<z.ZodNumber>;
        triggerType: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    trend: z.ZodOptional<z.ZodEnum<{
        unknown: "unknown";
        improving: "improving";
        declining: "declining";
        stable: "stable";
    }>>;
    isFlaky: z.ZodOptional<z.ZodBoolean>;
    flakinessNote: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const getRelatedPlanRunsResponseSchema: z.ZodObject<{
    currentRun: z.ZodObject<{
        planRunId: z.ZodString;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            cancelled: "cancelled";
            terminated: "terminated";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        endTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        testCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        passRate: z.ZodOptional<z.ZodNumber>;
        triggerType: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>;
    previousRuns: z.ZodArray<z.ZodObject<{
        planRunId: z.ZodString;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            cancelled: "cancelled";
            terminated: "terminated";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        endTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        testCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        passRate: z.ZodOptional<z.ZodNumber>;
        triggerType: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    insights: z.ZodObject<{
        totalRuns: z.ZodNumber;
        averagePassRate: z.ZodOptional<z.ZodNumber>;
        averageDurationMs: z.ZodOptional<z.ZodNumber>;
        minDurationMs: z.ZodOptional<z.ZodNumber>;
        maxDurationMs: z.ZodOptional<z.ZodNumber>;
        consecutivePasses: z.ZodOptional<z.ZodNumber>;
        consecutiveFailures: z.ZodOptional<z.ZodNumber>;
        lastPassedRun: z.ZodOptional<z.ZodObject<{
            planRunId: z.ZodString;
            status: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                running: "running";
                cancelled: "cancelled";
                terminated: "terminated";
            }>;
            startTime: z.ZodOptional<z.ZodString>;
            endTime: z.ZodOptional<z.ZodString>;
            durationMs: z.ZodOptional<z.ZodNumber>;
            testCounts: z.ZodOptional<z.ZodObject<{
                total: z.ZodNumber;
                passed: z.ZodNumber;
                failed: z.ZodNumber;
            }, z.core.$strip>>;
            passRate: z.ZodOptional<z.ZodNumber>;
            triggerType: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        trend: z.ZodOptional<z.ZodEnum<{
            unknown: "unknown";
            improving: "improving";
            declining: "declining";
            stable: "stable";
        }>>;
        isFlaky: z.ZodOptional<z.ZodBoolean>;
        flakinessNote: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>;
}, z.core.$strip>;
export declare const GetRelatedPlanRunsToolDefinition: import("../toolDefinition.js").ToolDefinition<"get_related_plan_runs", z.ZodObject<{
    plan_run_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>;
    include_ad_hoc: z.ZodOptional<z.ZodBoolean>;
    time_range: z.ZodOptional<z.ZodEnum<{
        recent: "recent";
        day: "day";
        week: "week";
        month: "month";
    }>>;
}, z.core.$strip>, undefined, z.ZodObject<{
    currentRun: z.ZodObject<{
        planRunId: z.ZodString;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            cancelled: "cancelled";
            terminated: "terminated";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        endTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        testCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        passRate: z.ZodOptional<z.ZodNumber>;
        triggerType: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>;
    previousRuns: z.ZodArray<z.ZodObject<{
        planRunId: z.ZodString;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            cancelled: "cancelled";
            terminated: "terminated";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        endTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        testCounts: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            passed: z.ZodNumber;
            failed: z.ZodNumber;
        }, z.core.$strip>>;
        passRate: z.ZodOptional<z.ZodNumber>;
        triggerType: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    insights: z.ZodObject<{
        totalRuns: z.ZodNumber;
        averagePassRate: z.ZodOptional<z.ZodNumber>;
        averageDurationMs: z.ZodOptional<z.ZodNumber>;
        minDurationMs: z.ZodOptional<z.ZodNumber>;
        maxDurationMs: z.ZodOptional<z.ZodNumber>;
        consecutivePasses: z.ZodOptional<z.ZodNumber>;
        consecutiveFailures: z.ZodOptional<z.ZodNumber>;
        lastPassedRun: z.ZodOptional<z.ZodObject<{
            planRunId: z.ZodString;
            status: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                running: "running";
                cancelled: "cancelled";
                terminated: "terminated";
            }>;
            startTime: z.ZodOptional<z.ZodString>;
            endTime: z.ZodOptional<z.ZodString>;
            durationMs: z.ZodOptional<z.ZodNumber>;
            testCounts: z.ZodOptional<z.ZodObject<{
                total: z.ZodNumber;
                passed: z.ZodNumber;
                failed: z.ZodNumber;
            }, z.core.$strip>>;
            passRate: z.ZodOptional<z.ZodNumber>;
            triggerType: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        trend: z.ZodOptional<z.ZodEnum<{
            unknown: "unknown";
            improving: "improving";
            declining: "declining";
            stable: "stable";
        }>>;
        isFlaky: z.ZodOptional<z.ZodBoolean>;
        flakinessNote: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>;
}, z.core.$strip>>;
export type GetRelatedPlanRunsToolName = ToolName<typeof GetRelatedPlanRunsToolDefinition>;
export type GetRelatedPlanRunsToolArguments = ToolArguments<typeof GetRelatedPlanRunsToolDefinition>;
export type GetRelatedPlanRunsToolInput = ExecuteInput<typeof GetRelatedPlanRunsToolDefinition>;
export type GetRelatedPlanRunsToolOutput = ExecuteOutput<typeof GetRelatedPlanRunsToolDefinition>;
export type PlanRunInfo = z.infer<typeof planRunInfoSchema>;
export type PlanRunInsights = z.infer<typeof planRunInsightsSchema>;
export type GetRelatedPlanRunsResponse = z.infer<typeof getRelatedPlanRunsResponseSchema>;
//# sourceMappingURL=GetRelatedPlanRunsDefinition.d.ts.map