/** * Tool: get_today * * Composite tool that fetches today's recovery, last night's sleep, * current cycle strain, and most recent workout in parallel. * Returns a unified snapshot with a human-readable summary. */ import type { WhoopClient } from "../api/client.js"; import { z } from "zod"; import { type DataQuality } from "./analytics-utils.js"; export declare const todayOutputSchema: z.ZodObject<{ timestamp: z.ZodString; recovery: z.ZodNullable; skin_temp_celsius: z.ZodNullable; }, z.core.$strip>>; sleep: z.ZodNullable; efficiency_pct: z.ZodNullable; respiratory_rate: z.ZodNullable; }, z.core.$strip>>; strain: z.ZodNullable>; }, z.core.$strip>>; summary: z.ZodString; data_quality: z.ZodObject<{ evaluated_at: z.ZodString; requested_period: z.ZodObject<{ start: z.ZodString; end: z.ZodString; }, z.core.$strip>; observed_period: z.ZodNullable>; sources: z.ZodRecord; fetched_at: z.ZodNullable; source_updated_at: z.ZodNullable; cache_status: z.ZodEnum<{ unknown: "unknown"; hit: "hit"; miss: "miss"; }>; records_fetched: z.ZodNumber; records_used: z.ZodNumber; exclusions: z.ZodRecord; truncated: z.ZodBoolean; }, z.core.$strip>>; method_version: z.ZodString; limitations: z.ZodArray; }, z.core.$strip>; }, z.core.$strip>; export interface TodayRecovery { score: number; hrv_rmssd_milli: number; resting_heart_rate: number; spo2_pct: number | null; skin_temp_celsius: number | null; } export interface TodaySleep { total_hours: number; time_in_bed_hours: number; asleep_hours: number; rem_hours: number; deep_hours: number; light_hours: number; awake_hours: number; performance_pct: number | null; efficiency_pct: number | null; respiratory_rate: number | null; } export interface TodayLastWorkout { sport_name: string; strain: number; occurred_at: string; percent_recorded: number; } export interface TodayStrain { day_strain: number; energy_burned_kj: number; last_workout: TodayLastWorkout | null; } export interface TodaySnapshot { timestamp: string; recovery: TodayRecovery | null; sleep: TodaySleep | null; strain: TodayStrain | null; summary: string; data_quality: DataQuality; } /** * Get today's complete health snapshot. * * Fetches recovery, sleep, cycle, and workout data in parallel. * If individual endpoints fail, returns null for those sections. * Only throws if ALL endpoints fail. * * @param client - Authenticated WHOOP API client * @returns Today's snapshot with recovery, sleep, strain, and summary * @throws Error if all API calls fail */ export declare function getToday(client: WhoopClient, now?: Date): Promise; //# sourceMappingURL=get-today.d.ts.map