import { type Page } from '@playwright/test';
export type CapturedResponse = {
    url: string;
    method: string;
    status: number;
    bodyText: string;
    contentType: string;
};
type AppsPage = {
    clickCamundaApps: () => Promise<void>;
    clickOptimize: (clusterName: string) => Promise<void>;
};
type OptimizeHomePage = {
    optimizeBanner: {
        isVisible: (opts?: {
            timeout?: number;
        }) => Promise<boolean>;
    };
};
type RoleName = 'link' | 'button' | 'option' | 'menuitem' | 'tab';
export declare const AGENTIC_DASHBOARD_DEFINITION_PATH = "/api/dashboard/agentic";
export declare const REPORT_EVALUATE_PATH_PATTERN: RegExp;
export declare const EXECUTION_REPORT_NAME = "total executions";
export declare const CURRENT_TERMINOLOGY = "total executions";
export declare const LEGACY_TERMINOLOGY = "completed agent runs";
export declare function clickFirstVisibleByName(page: Page, role: RoleName, names: string[]): Promise<boolean>;
export declare function openAgenticControlPlane(page: Page, appsPage: AppsPage, optimizeHomePage: OptimizeHomePage, clusterName: string): Promise<void>;
export declare function changeDashboardDateRange(page: Page): Promise<boolean>;
export declare function isAgenticDashboardDefinitionResponse(response: CapturedResponse): boolean;
export declare function isReportEvaluateResponse(response: CapturedResponse): boolean;
export declare function isLikelyDashboardApiResponse(response: CapturedResponse): boolean;
export declare function captureDashboardResponses(page: Page, action: () => Promise<void>): Promise<CapturedResponse[]>;
export declare function parseJsonResponseBodies(responses: CapturedResponse[]): unknown[];
export declare function findReportByName(bodies: unknown[], name: string): unknown;
export declare function getReportNumericResult(body: unknown): number | undefined;
export declare function dashboardHasComparisonTile(definition: unknown): boolean;
export declare function selectSingleProcessIfPossible(page: Page): Promise<boolean>;
export {};
