import { z } from "zod"; import type { WhoopClient } from "../api/client.js"; export declare const DASHBOARD_VIEWS: readonly ["today", "session", "training", "hyrox", "triathlon", "readiness", "audit"]; export type DashboardView = (typeof DASHBOARD_VIEWS)[number]; export declare const openPerformanceDashboardInputSchema: z.ZodObject<{ view: z.ZodOptional>; }, z.core.$strip>; export declare const openPerformanceDashboardOutputSchema: z.ZodObject<{ url: z.ZodString; view: z.ZodEnum<{ today: "today"; hyrox: "hyrox"; triathlon: "triathlon"; session: "session"; training: "training"; readiness: "readiness"; audit: "audit"; }>; reused: z.ZodBoolean; browser_opened: z.ZodBoolean; expires_after_idle_minutes: z.ZodNumber; note: z.ZodString; }, z.core.$strip>; export type OpenPerformanceDashboardOutput = z.infer; export interface DashboardControllerOptions { client: WhoopClient; directory?: string; openBrowser?: (url: string) => void; staticDir?: string; idleMs?: number; } export interface DashboardController { open(params: z.infer): Promise; close(): Promise; } /** * Starts the loopback dashboard on first use and reuses it afterwards. Each call rotates the * session token, so only the most recently opened tab can call the API. */ export declare function createDashboardController(options: DashboardControllerOptions): DashboardController; //# sourceMappingURL=open-performance-dashboard.d.ts.map