import { z } from 'zod';
import { type ToolName, type ToolArguments, type ExecuteInput, type ExecuteOutput } from '../toolDefinition.js';
/**
 * Aligned with Core API `failed_plan_run_sample_limit` (OpenAPI `planRuns.yaml`) and server `PlanRunServiceImpl`.
 */
export declare const WORKSPACE_PLAN_RUN_OVERVIEW_FAILED_SAMPLE_DEFAULT = 20;
export declare const WORKSPACE_PLAN_RUN_OVERVIEW_FAILED_SAMPLE_MAX = 150;
/**
 * Aggregated workspace plan-run stats for a fixed session scope (time range, optional env/app).
 * Implemented via Core API **server-side** Datastore count aggregations (fast), plus bounded fetches for failure samples.
 */
export declare const getWorkspacePlanRunsOverviewParamsSchema: z.ZodObject<{
    failed_plan_run_sample_limit: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export declare const getWorkspacePlanRunsOverviewResponseSchema: z.ZodObject<{
    total_plan_runs: z.ZodNumber;
    counts_by_status: z.ZodObject<{
        passed: z.ZodNumber;
        failed: z.ZodNumber;
        running: z.ZodNumber;
        queued: z.ZodNumber;
        cancelled: z.ZodNumber;
        terminated: z.ZodNumber;
    }, z.core.$strip>;
    scan_complete: z.ZodBoolean;
    stopped_early: z.ZodBoolean;
    newest_failed_plan_runs: z.ZodArray<z.ZodObject<{
        planRunId: z.ZodString;
        planId: z.ZodOptional<z.ZodString>;
        planName: z.ZodOptional<z.ZodString>;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            queued: "queued";
            cancelled: "cancelled";
            terminated: "terminated";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        endTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        applicationId: z.ZodOptional<z.ZodString>;
        environmentId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    top_plans_by_failed_runs: z.ZodArray<z.ZodObject<{
        planId: z.ZodString;
        planName: z.ZodOptional<z.ZodString>;
        failed_run_count: z.ZodNumber;
    }, z.core.$strip>>;
    failures_sampled_for_top_plans: z.ZodNumber;
    top_plans_exhaustive: z.ZodBoolean;
    appliedFilters: z.ZodObject<{
        workspaceId: z.ZodString;
        startTime: z.ZodString;
        endTime: z.ZodString;
        environmentId: z.ZodOptional<z.ZodString>;
        applicationId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>;
}, z.core.$strip>;
export declare const GetWorkspacePlanRunsOverviewToolDefinition: import("../toolDefinition.js").ToolDefinition<"get_workspace_plan_runs_overview", z.ZodObject<{
    failed_plan_run_sample_limit: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>, undefined, z.ZodObject<{
    total_plan_runs: z.ZodNumber;
    counts_by_status: z.ZodObject<{
        passed: z.ZodNumber;
        failed: z.ZodNumber;
        running: z.ZodNumber;
        queued: z.ZodNumber;
        cancelled: z.ZodNumber;
        terminated: z.ZodNumber;
    }, z.core.$strip>;
    scan_complete: z.ZodBoolean;
    stopped_early: z.ZodBoolean;
    newest_failed_plan_runs: z.ZodArray<z.ZodObject<{
        planRunId: z.ZodString;
        planId: z.ZodOptional<z.ZodString>;
        planName: z.ZodOptional<z.ZodString>;
        status: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            running: "running";
            queued: "queued";
            cancelled: "cancelled";
            terminated: "terminated";
        }>;
        startTime: z.ZodOptional<z.ZodString>;
        endTime: z.ZodOptional<z.ZodString>;
        durationMs: z.ZodOptional<z.ZodNumber>;
        applicationId: z.ZodOptional<z.ZodString>;
        environmentId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    top_plans_by_failed_runs: z.ZodArray<z.ZodObject<{
        planId: z.ZodString;
        planName: z.ZodOptional<z.ZodString>;
        failed_run_count: z.ZodNumber;
    }, z.core.$strip>>;
    failures_sampled_for_top_plans: z.ZodNumber;
    top_plans_exhaustive: z.ZodBoolean;
    appliedFilters: z.ZodObject<{
        workspaceId: z.ZodString;
        startTime: z.ZodString;
        endTime: z.ZodString;
        environmentId: z.ZodOptional<z.ZodString>;
        applicationId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>;
}, z.core.$strip>>;
export type GetWorkspacePlanRunsOverviewToolName = ToolName<typeof GetWorkspacePlanRunsOverviewToolDefinition>;
export type GetWorkspacePlanRunsOverviewToolArguments = ToolArguments<typeof GetWorkspacePlanRunsOverviewToolDefinition>;
export type GetWorkspacePlanRunsOverviewToolInput = ExecuteInput<typeof GetWorkspacePlanRunsOverviewToolDefinition>;
export type GetWorkspacePlanRunsOverviewToolOutput = ExecuteOutput<typeof GetWorkspacePlanRunsOverviewToolDefinition>;
export type GetWorkspacePlanRunsOverviewResponse = z.infer<typeof getWorkspacePlanRunsOverviewResponseSchema>;
//# sourceMappingURL=GetWorkspacePlanRunsOverviewDefinition.d.ts.map