import { z } from 'zod';
import { type ToolName, type ToolArguments, type ExecuteInput, type ExecuteOutput } from '../toolDefinition.js';
/**
 * GetRelatedTestRunsDefinition - Tool definition for fetching and comparing test runs of the same test.
 */
export declare const getRelatedTestRunsParamsSchema: z.ZodObject<{
    test_run_id: z.ZodOptional<z.ZodString>;
    test_id: z.ZodOptional<z.ZodString>;
    filter_status: z.ZodOptional<z.ZodEnum<{
        all: "all";
        passed: "passed";
        failed: "failed";
    }>>;
    limit: z.ZodOptional<z.ZodNumber>;
    include_current: z.ZodOptional<z.ZodBoolean>;
    time_range: z.ZodOptional<z.ZodEnum<{
        recent: "recent";
        day: "day";
        week: "week";
        month: "month";
    }>>;
    compare_same_browser: z.ZodOptional<z.ZodBoolean>;
    compare_same_environment: z.ZodOptional<z.ZodBoolean>;
    compare_same_scenario: z.ZodOptional<z.ZodBoolean>;
    sort_by: z.ZodOptional<z.ZodEnum<{
        status: "status";
        time: "time";
        duration: "duration";
    }>>;
}, z.core.$strip>;
export declare const testRunSummarySchema: z.ZodObject<{
    testRunId: z.ZodString;
    testVariantId: z.ZodOptional<z.ZodString>;
    status: z.ZodString;
    normalizedStatus: z.ZodEnum<{
        passed: "passed";
        failed: "failed";
        other: "other";
    }>;
    startTime: z.ZodOptional<z.ZodString>;
    durationMs: z.ZodOptional<z.ZodNumber>;
    durationFormatted: z.ZodOptional<z.ZodString>;
    browser: z.ZodOptional<z.ZodString>;
    planId: z.ZodOptional<z.ZodString>;
    environmentId: z.ZodOptional<z.ZodString>;
    scenarioId: z.ZodOptional<z.ZodString>;
    failureReason: z.ZodOptional<z.ZodString>;
    isCurrent: z.ZodOptional<z.ZodBoolean>;
    isNewVersion: z.ZodOptional<z.ZodBoolean>;
    relativeTime: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const comparisonInsightsSchema: z.ZodObject<{
    totalRuns: z.ZodNumber;
    passedRuns: z.ZodNumber;
    failedRuns: z.ZodNumber;
    passRate: z.ZodNumber;
    lastPassedRun: z.ZodOptional<z.ZodObject<{
        testRunId: z.ZodString;
        testVariantId: z.ZodOptional<z.ZodString>;
        status: z.ZodString;
        normalizedStatus: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            other: "other";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        durationFormatted: z.ZodOptional<z.ZodString>;
        browser: z.ZodOptional<z.ZodString>;
        planId: z.ZodOptional<z.ZodString>;
        environmentId: z.ZodOptional<z.ZodString>;
        scenarioId: z.ZodOptional<z.ZodString>;
        failureReason: z.ZodOptional<z.ZodString>;
        isCurrent: z.ZodOptional<z.ZodBoolean>;
        isNewVersion: z.ZodOptional<z.ZodBoolean>;
        relativeTime: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    lastFailedRun: z.ZodOptional<z.ZodObject<{
        testRunId: z.ZodString;
        testVariantId: z.ZodOptional<z.ZodString>;
        status: z.ZodString;
        normalizedStatus: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            other: "other";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        durationFormatted: z.ZodOptional<z.ZodString>;
        browser: z.ZodOptional<z.ZodString>;
        planId: z.ZodOptional<z.ZodString>;
        environmentId: z.ZodOptional<z.ZodString>;
        scenarioId: z.ZodOptional<z.ZodString>;
        failureReason: z.ZodOptional<z.ZodString>;
        isCurrent: z.ZodOptional<z.ZodBoolean>;
        isNewVersion: z.ZodOptional<z.ZodBoolean>;
        relativeTime: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    lastPassedRunSameVersion: z.ZodOptional<z.ZodObject<{
        testRunId: z.ZodString;
        testVariantId: z.ZodOptional<z.ZodString>;
        status: z.ZodString;
        normalizedStatus: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            other: "other";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        durationFormatted: z.ZodOptional<z.ZodString>;
        browser: z.ZodOptional<z.ZodString>;
        planId: z.ZodOptional<z.ZodString>;
        environmentId: z.ZodOptional<z.ZodString>;
        scenarioId: z.ZodOptional<z.ZodString>;
        failureReason: z.ZodOptional<z.ZodString>;
        isCurrent: z.ZodOptional<z.ZodBoolean>;
        isNewVersion: z.ZodOptional<z.ZodBoolean>;
        relativeTime: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    currentVersionEverPassed: z.ZodOptional<z.ZodBoolean>;
    avgDurationMs: z.ZodOptional<z.ZodNumber>;
    avgDurationFormatted: z.ZodOptional<z.ZodString>;
    isFlaky: z.ZodBoolean;
    flakinessNote: z.ZodOptional<z.ZodString>;
    consecutiveFailures: z.ZodOptional<z.ZodNumber>;
    consecutivePasses: z.ZodOptional<z.ZodNumber>;
    failureReasonBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
        reason: z.ZodString;
        count: z.ZodNumber;
        percentage: z.ZodNumber;
    }, z.core.$strip>>>;
    browserBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
        browser: z.ZodString;
        passRate: z.ZodNumber;
        runCount: z.ZodNumber;
    }, z.core.$strip>>>;
    versionBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
        variantId: z.ZodString;
        passRate: z.ZodNumber;
        runCount: z.ZodNumber;
        firstSeen: z.ZodOptional<z.ZodString>;
        lastSeen: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>>;
    testWasModified: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
export declare const currentRunContextSchema: z.ZodObject<{
    testRunId: z.ZodString;
    testVariantId: z.ZodOptional<z.ZodString>;
    testName: z.ZodOptional<z.ZodString>;
    testType: z.ZodOptional<z.ZodEnum<{
        unknown: "unknown";
        browser: "browser";
        api: "api";
        mobile: "mobile";
        performance: "performance";
    }>>;
    status: z.ZodString;
    normalizedStatus: z.ZodEnum<{
        passed: "passed";
        failed: "failed";
        other: "other";
    }>;
    startTime: z.ZodOptional<z.ZodString>;
    durationMs: z.ZodOptional<z.ZodNumber>;
    durationFormatted: z.ZodOptional<z.ZodString>;
    browser: z.ZodOptional<z.ZodString>;
    planId: z.ZodOptional<z.ZodString>;
    environmentId: z.ZodOptional<z.ZodString>;
    scenarioId: z.ZodOptional<z.ZodString>;
    failureReason: z.ZodOptional<z.ZodString>;
    failureSummary: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const getRelatedTestRunsResponseSchema: z.ZodObject<{
    testId: z.ZodString;
    currentRun: z.ZodOptional<z.ZodObject<{
        testRunId: z.ZodString;
        testVariantId: z.ZodOptional<z.ZodString>;
        testName: z.ZodOptional<z.ZodString>;
        testType: z.ZodOptional<z.ZodEnum<{
            unknown: "unknown";
            browser: "browser";
            api: "api";
            mobile: "mobile";
            performance: "performance";
        }>>;
        status: z.ZodString;
        normalizedStatus: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            other: "other";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        durationFormatted: z.ZodOptional<z.ZodString>;
        browser: z.ZodOptional<z.ZodString>;
        planId: z.ZodOptional<z.ZodString>;
        environmentId: z.ZodOptional<z.ZodString>;
        scenarioId: z.ZodOptional<z.ZodString>;
        failureReason: z.ZodOptional<z.ZodString>;
        failureSummary: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    previousRuns: z.ZodArray<z.ZodObject<{
        testRunId: z.ZodString;
        testVariantId: z.ZodOptional<z.ZodString>;
        status: z.ZodString;
        normalizedStatus: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            other: "other";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        durationFormatted: z.ZodOptional<z.ZodString>;
        browser: z.ZodOptional<z.ZodString>;
        planId: z.ZodOptional<z.ZodString>;
        environmentId: z.ZodOptional<z.ZodString>;
        scenarioId: z.ZodOptional<z.ZodString>;
        failureReason: z.ZodOptional<z.ZodString>;
        isCurrent: z.ZodOptional<z.ZodBoolean>;
        isNewVersion: z.ZodOptional<z.ZodBoolean>;
        relativeTime: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    insights: z.ZodObject<{
        totalRuns: z.ZodNumber;
        passedRuns: z.ZodNumber;
        failedRuns: z.ZodNumber;
        passRate: z.ZodNumber;
        lastPassedRun: z.ZodOptional<z.ZodObject<{
            testRunId: z.ZodString;
            testVariantId: z.ZodOptional<z.ZodString>;
            status: z.ZodString;
            normalizedStatus: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                other: "other";
            }>;
            startTime: z.ZodOptional<z.ZodString>;
            durationMs: z.ZodOptional<z.ZodNumber>;
            durationFormatted: z.ZodOptional<z.ZodString>;
            browser: z.ZodOptional<z.ZodString>;
            planId: z.ZodOptional<z.ZodString>;
            environmentId: z.ZodOptional<z.ZodString>;
            scenarioId: z.ZodOptional<z.ZodString>;
            failureReason: z.ZodOptional<z.ZodString>;
            isCurrent: z.ZodOptional<z.ZodBoolean>;
            isNewVersion: z.ZodOptional<z.ZodBoolean>;
            relativeTime: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        lastFailedRun: z.ZodOptional<z.ZodObject<{
            testRunId: z.ZodString;
            testVariantId: z.ZodOptional<z.ZodString>;
            status: z.ZodString;
            normalizedStatus: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                other: "other";
            }>;
            startTime: z.ZodOptional<z.ZodString>;
            durationMs: z.ZodOptional<z.ZodNumber>;
            durationFormatted: z.ZodOptional<z.ZodString>;
            browser: z.ZodOptional<z.ZodString>;
            planId: z.ZodOptional<z.ZodString>;
            environmentId: z.ZodOptional<z.ZodString>;
            scenarioId: z.ZodOptional<z.ZodString>;
            failureReason: z.ZodOptional<z.ZodString>;
            isCurrent: z.ZodOptional<z.ZodBoolean>;
            isNewVersion: z.ZodOptional<z.ZodBoolean>;
            relativeTime: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        lastPassedRunSameVersion: z.ZodOptional<z.ZodObject<{
            testRunId: z.ZodString;
            testVariantId: z.ZodOptional<z.ZodString>;
            status: z.ZodString;
            normalizedStatus: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                other: "other";
            }>;
            startTime: z.ZodOptional<z.ZodString>;
            durationMs: z.ZodOptional<z.ZodNumber>;
            durationFormatted: z.ZodOptional<z.ZodString>;
            browser: z.ZodOptional<z.ZodString>;
            planId: z.ZodOptional<z.ZodString>;
            environmentId: z.ZodOptional<z.ZodString>;
            scenarioId: z.ZodOptional<z.ZodString>;
            failureReason: z.ZodOptional<z.ZodString>;
            isCurrent: z.ZodOptional<z.ZodBoolean>;
            isNewVersion: z.ZodOptional<z.ZodBoolean>;
            relativeTime: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        currentVersionEverPassed: z.ZodOptional<z.ZodBoolean>;
        avgDurationMs: z.ZodOptional<z.ZodNumber>;
        avgDurationFormatted: z.ZodOptional<z.ZodString>;
        isFlaky: z.ZodBoolean;
        flakinessNote: z.ZodOptional<z.ZodString>;
        consecutiveFailures: z.ZodOptional<z.ZodNumber>;
        consecutivePasses: z.ZodOptional<z.ZodNumber>;
        failureReasonBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
            reason: z.ZodString;
            count: z.ZodNumber;
            percentage: z.ZodNumber;
        }, z.core.$strip>>>;
        browserBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
            browser: z.ZodString;
            passRate: z.ZodNumber;
            runCount: z.ZodNumber;
        }, z.core.$strip>>>;
        versionBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
            variantId: z.ZodString;
            passRate: z.ZodNumber;
            runCount: z.ZodNumber;
            firstSeen: z.ZodOptional<z.ZodString>;
            lastSeen: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>>;
        testWasModified: z.ZodOptional<z.ZodBoolean>;
    }, z.core.$strip>;
    note: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const GetRelatedTestRunsToolDefinition: import("../toolDefinition.js").ToolDefinition<"get_related_test_runs", z.ZodObject<{
    test_run_id: z.ZodOptional<z.ZodString>;
    test_id: z.ZodOptional<z.ZodString>;
    filter_status: z.ZodOptional<z.ZodEnum<{
        all: "all";
        passed: "passed";
        failed: "failed";
    }>>;
    limit: z.ZodOptional<z.ZodNumber>;
    include_current: z.ZodOptional<z.ZodBoolean>;
    time_range: z.ZodOptional<z.ZodEnum<{
        recent: "recent";
        day: "day";
        week: "week";
        month: "month";
    }>>;
    compare_same_browser: z.ZodOptional<z.ZodBoolean>;
    compare_same_environment: z.ZodOptional<z.ZodBoolean>;
    compare_same_scenario: z.ZodOptional<z.ZodBoolean>;
    sort_by: z.ZodOptional<z.ZodEnum<{
        status: "status";
        time: "time";
        duration: "duration";
    }>>;
}, z.core.$strip>, undefined, z.ZodObject<{
    testId: z.ZodString;
    currentRun: z.ZodOptional<z.ZodObject<{
        testRunId: z.ZodString;
        testVariantId: z.ZodOptional<z.ZodString>;
        testName: z.ZodOptional<z.ZodString>;
        testType: z.ZodOptional<z.ZodEnum<{
            unknown: "unknown";
            browser: "browser";
            api: "api";
            mobile: "mobile";
            performance: "performance";
        }>>;
        status: z.ZodString;
        normalizedStatus: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            other: "other";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        durationFormatted: z.ZodOptional<z.ZodString>;
        browser: z.ZodOptional<z.ZodString>;
        planId: z.ZodOptional<z.ZodString>;
        environmentId: z.ZodOptional<z.ZodString>;
        scenarioId: z.ZodOptional<z.ZodString>;
        failureReason: z.ZodOptional<z.ZodString>;
        failureSummary: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    previousRuns: z.ZodArray<z.ZodObject<{
        testRunId: z.ZodString;
        testVariantId: z.ZodOptional<z.ZodString>;
        status: z.ZodString;
        normalizedStatus: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            other: "other";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        durationFormatted: z.ZodOptional<z.ZodString>;
        browser: z.ZodOptional<z.ZodString>;
        planId: z.ZodOptional<z.ZodString>;
        environmentId: z.ZodOptional<z.ZodString>;
        scenarioId: z.ZodOptional<z.ZodString>;
        failureReason: z.ZodOptional<z.ZodString>;
        isCurrent: z.ZodOptional<z.ZodBoolean>;
        isNewVersion: z.ZodOptional<z.ZodBoolean>;
        relativeTime: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    insights: z.ZodObject<{
        totalRuns: z.ZodNumber;
        passedRuns: z.ZodNumber;
        failedRuns: z.ZodNumber;
        passRate: z.ZodNumber;
        lastPassedRun: z.ZodOptional<z.ZodObject<{
            testRunId: z.ZodString;
            testVariantId: z.ZodOptional<z.ZodString>;
            status: z.ZodString;
            normalizedStatus: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                other: "other";
            }>;
            startTime: z.ZodOptional<z.ZodString>;
            durationMs: z.ZodOptional<z.ZodNumber>;
            durationFormatted: z.ZodOptional<z.ZodString>;
            browser: z.ZodOptional<z.ZodString>;
            planId: z.ZodOptional<z.ZodString>;
            environmentId: z.ZodOptional<z.ZodString>;
            scenarioId: z.ZodOptional<z.ZodString>;
            failureReason: z.ZodOptional<z.ZodString>;
            isCurrent: z.ZodOptional<z.ZodBoolean>;
            isNewVersion: z.ZodOptional<z.ZodBoolean>;
            relativeTime: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        lastFailedRun: z.ZodOptional<z.ZodObject<{
            testRunId: z.ZodString;
            testVariantId: z.ZodOptional<z.ZodString>;
            status: z.ZodString;
            normalizedStatus: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                other: "other";
            }>;
            startTime: z.ZodOptional<z.ZodString>;
            durationMs: z.ZodOptional<z.ZodNumber>;
            durationFormatted: z.ZodOptional<z.ZodString>;
            browser: z.ZodOptional<z.ZodString>;
            planId: z.ZodOptional<z.ZodString>;
            environmentId: z.ZodOptional<z.ZodString>;
            scenarioId: z.ZodOptional<z.ZodString>;
            failureReason: z.ZodOptional<z.ZodString>;
            isCurrent: z.ZodOptional<z.ZodBoolean>;
            isNewVersion: z.ZodOptional<z.ZodBoolean>;
            relativeTime: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        lastPassedRunSameVersion: z.ZodOptional<z.ZodObject<{
            testRunId: z.ZodString;
            testVariantId: z.ZodOptional<z.ZodString>;
            status: z.ZodString;
            normalizedStatus: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                other: "other";
            }>;
            startTime: z.ZodOptional<z.ZodString>;
            durationMs: z.ZodOptional<z.ZodNumber>;
            durationFormatted: z.ZodOptional<z.ZodString>;
            browser: z.ZodOptional<z.ZodString>;
            planId: z.ZodOptional<z.ZodString>;
            environmentId: z.ZodOptional<z.ZodString>;
            scenarioId: z.ZodOptional<z.ZodString>;
            failureReason: z.ZodOptional<z.ZodString>;
            isCurrent: z.ZodOptional<z.ZodBoolean>;
            isNewVersion: z.ZodOptional<z.ZodBoolean>;
            relativeTime: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        currentVersionEverPassed: z.ZodOptional<z.ZodBoolean>;
        avgDurationMs: z.ZodOptional<z.ZodNumber>;
        avgDurationFormatted: z.ZodOptional<z.ZodString>;
        isFlaky: z.ZodBoolean;
        flakinessNote: z.ZodOptional<z.ZodString>;
        consecutiveFailures: z.ZodOptional<z.ZodNumber>;
        consecutivePasses: z.ZodOptional<z.ZodNumber>;
        failureReasonBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
            reason: z.ZodString;
            count: z.ZodNumber;
            percentage: z.ZodNumber;
        }, z.core.$strip>>>;
        browserBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
            browser: z.ZodString;
            passRate: z.ZodNumber;
            runCount: z.ZodNumber;
        }, z.core.$strip>>>;
        versionBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
            variantId: z.ZodString;
            passRate: z.ZodNumber;
            runCount: z.ZodNumber;
            firstSeen: z.ZodOptional<z.ZodString>;
            lastSeen: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>>;
        testWasModified: z.ZodOptional<z.ZodBoolean>;
    }, z.core.$strip>;
    note: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
export type GetRelatedTestRunsToolName = ToolName<typeof GetRelatedTestRunsToolDefinition>;
export type GetRelatedTestRunsToolArguments = ToolArguments<typeof GetRelatedTestRunsToolDefinition>;
export type GetRelatedTestRunsToolInput = ExecuteInput<typeof GetRelatedTestRunsToolDefinition>;
export type GetRelatedTestRunsToolOutput = ExecuteOutput<typeof GetRelatedTestRunsToolDefinition>;
export type TestRunSummaryInfo = z.infer<typeof testRunSummarySchema>;
export type ComparisonInsights = z.infer<typeof comparisonInsightsSchema>;
export type CurrentRunContext = z.infer<typeof currentRunContextSchema>;
//# sourceMappingURL=GetRelatedTestRunsDefinition.d.ts.map