UNPKG

@careevolution/mydatahelps-ui

Version:
1,085 lines (1,033 loc) • 149 kB
import React$1, { ReactElement, DependencyList, CSSProperties, ReactNode, MouseEventHandler } from 'react'; import { AsthmaActionPlanManagerPreviewState } from './components/asthma/components/AsthmaActionPlanManager/AsthmaActionPlanManager.previewData.ts'; import { AsthmaAirQualitiesPreviewState } from './components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.ts'; export { AsthmaAirQualitiesPreviewState } from './components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.ts'; import { AsthmaBiometricsPreviewState } from './components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.ts'; export { AsthmaBiometricsPreviewState } from './components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.ts'; import { AsthmaControlCalendarPreviewState } from './components/asthma/components/AsthmaControlCalendar/AsthmaControlCalendar.previewData.ts'; export { AsthmaControlCalendarPreviewState } from './components/asthma/components/AsthmaControlCalendar/AsthmaControlCalendar.previewData.ts'; import { ParticipantInfo, Guid, DataCollectionSettings, SupportedDeviceDataV2DataType, EventName, DeviceDataNamespace, DeviceDataV2Namespace, StatusBarStyle, ExternalAccount, Notification, SurveyTask, InboxMessage, InboxResource, InboxSurvey, DeviceInfo, DeviceDataPoint, SurveyAnswer, ConnectExternalAccountOptions, ExternalAccountStatus, InboxItemType, InboxItemStatus, SortOrder, InboxItemSortColumn, InboxItem, NotificationType, ExternalAccountProvider, SurveyTaskStatus } from '@careevolution/mydatahelps-js'; import { AsthmaControlStatusHeaderPreviewState } from './components/asthma/components/AsthmaControlStatusHeader/AsthmaControlStatusHeader.previewData.ts'; import { AsthmaLogEntryDetailsPreviewState } from './components/asthma/components/AsthmaLogEntryDetails/AsthmaLogEntryDetails.previewData.ts'; export { AsthmaLogEntryDetailsPreviewState } from './components/asthma/components/AsthmaLogEntryDetails/AsthmaLogEntryDetails.previewData.ts'; import { AsthmaLogEntryHeaderPreviewState } from './components/asthma/components/AsthmaLogEntryHeader/AsthmaLogEntryHeader.previewData.ts'; import { AsthmaProviderReportPreviewState } from './components/asthma/components/AsthmaProviderReport/AsthmaProviderReport.previewData.ts'; export { AsthmaProviderReportPreviewState } from './components/asthma/components/AsthmaProviderReport/AsthmaProviderReport.previewData.ts'; import { AsthmaLogEntryEditorViewPreviewState } from './components/asthma/views/AsthmaLogEntryEditorView/AsthmaLogEntryEditorView.previewData.ts'; export { AsthmaLogEntryEditorViewPreviewState } from './components/asthma/views/AsthmaLogEntryEditorView/AsthmaLogEntryEditorView.previewData.ts'; import * as _langchain_core_tools from '@langchain/core/tools'; import { StructuredTool } from '@langchain/core/tools'; import { GlucoseChartPreviewState } from './components/container/GlucoseChart/GlucoseChart.previewData.ts'; import { GlucoseDayCoordinatorPreviewState } from './components/container/GlucoseDayCoordinator/GlucoseDayCoordinator.previewData.ts'; export { GlucoseDayCoordinatorPreviewState } from './components/container/GlucoseDayCoordinator/GlucoseDayCoordinator.previewData.ts'; import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-common-types'; import { GoalPreviewState } from './components/container/Goal/Goal.previewData.ts'; export { GoalPreviewState } from './components/container/Goal/Goal.previewData.ts'; import { InboxItemListPreviewState } from './components/container/InboxItemList/InboxItemList.previewData.ts'; export { InboxItemListPreviewState } from './components/container/InboxItemList/InboxItemList.previewData.ts'; import { IconDefinition } from '@fortawesome/fontawesome-svg-core'; import { MealCoordinatorPreviewState } from './components/container/MealCoordinator/MealCoordinator.previewData.ts'; export { MealCoordinatorPreviewState } from './components/container/MealCoordinator/MealCoordinator.previewData.ts'; import { MealEditorPreviewState } from './components/container/MealEditor/MealEditor.previewData.ts'; export { MealEditorPreviewState } from './components/container/MealEditor/MealEditor.previewData.ts'; import { AxisDomain } from 'recharts/types/util/types'; import { Duration } from 'date-fns'; import { ResourceListPreviewState } from './components/presentational/ResourceList/ResourceList.previewData.ts'; export { ResourceListPreviewState } from './components/presentational/ResourceList/ResourceList.previewData.ts'; import { Locale } from 'date-fns/locale'; import { z } from 'zod'; interface AsthmaActionPlanManagerProps { previewState?: AsthmaActionPlanManagerPreviewState; learnMoreUrl: string; editActionPlanSurveyName: string; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$26(props: AsthmaActionPlanManagerProps): React$1.JSX.Element; interface AsthmaAirQualitiesProps { previewState?: 'loading' | AsthmaAirQualitiesPreviewState; editZipCodesSurveyName?: string; airQualityUrl: string; date?: Date; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$25(props: AsthmaAirQualitiesProps): React$1.JSX.Element; interface AsthmaAlertTakeoverNoticeProps { previewState?: 'loading' | 'loaded'; message: string; logEntrySurveyName: string; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$24(props: AsthmaAlertTakeoverNoticeProps): React$1.JSX.Element; interface AsthmaAlertTakeoverTriggerProps { previewState?: boolean; heartAndLungsUrl: string; activityUrl: string; sleepUrl: string; airQualityUrl: string; alertTakeoverUrl: string; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$23(props: AsthmaAlertTakeoverTriggerProps): null; interface AsthmaBiometricsProps { previewState?: 'loading' | AsthmaBiometricsPreviewState; heartAndLungsUrl: string; activityUrl: string; sleepUrl: string; date?: Date; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$22(props: AsthmaBiometricsProps): React$1.JSX.Element; type AsthmaControlCalendarVariant = 'compact' | 'verbose'; interface AsthmaControlCalendarProps { previewState?: AsthmaControlCalendarPreviewState; dayViewUrl: string; intervalStart?: Date; variant?: AsthmaControlCalendarVariant; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$21(props: AsthmaControlCalendarProps): React$1.JSX.Element; type AsthmaParticipantMode = 'Self' | 'Caregiver'; declare class AsthmaParticipant { participantInfo: ParticipantInfo; constructor(participantInfo: ParticipantInfo); getId(): Guid; getFirstName(): string; hasPairedDevice(): boolean; hasEstablishedBaseline(): boolean; getHomeAirQualityZipCode(): string; getWorkAirQualityZipCode(): string; getActionPlanTaskRunUUID(): string; getAlertTakeover(): string | undefined; getParticipantMode(): AsthmaParticipantMode; getCareRecipientName(): string | undefined; getDaytimeRestingHeartRateBaseline(): number | undefined; getNighttimeRestingHeartRateBaseline(): number | undefined; getRespiratoryRateBaseline(): number | undefined; getStepsBaseline(): number | undefined; getSleepDisturbancesBaseline(): number | undefined; getDaytimeBloodOxygenLevelBaseline(): number | undefined; getNighttimeBloodOxygenLevelBaseline(): number | undefined; private hasEstablishedBaselineByType; private getBaseline; private getCustomFieldValue; } type AsthmaControlStatus = 'no-data' | 'not-controlled' | 'controlled' | 'not-determined'; interface AsthmaControlState { status: AsthmaControlStatus; symptomDaysPast7?: number; nighttimeAwakeningDaysPast7?: number; limitedActivityDaysPast7?: number; inhalerUseDaysPast7?: number; } type AsthmaDataStatus = 'not-configured' | 'not-found' | 'not-determined' | 'establishing' | 'offline' | 'in-range' | 'out-of-range'; type AsthmaBiometricType = 'daytime-resting-heart-rate' | 'nighttime-resting-heart-rate' | 'respiratory-rate' | 'steps' | 'sleep-disturbances' | 'daytime-blood-oxygen-level' | 'nighttime-blood-oxygen-level'; interface AsthmaBiometric { type: AsthmaBiometricType; status: AsthmaDataStatus; value?: number; } type AsthmaAirQualityType = 'work' | 'home'; type AsthmaAirQualityDescription = 'unhealthy' | 'very unhealthy' | 'hazardous'; interface AsthmaAirQuality { type: AsthmaAirQualityType; status: AsthmaDataStatus; value?: number; description?: AsthmaAirQualityDescription; } type AsthmaSymptomLevel = 'none' | 'mild' | 'moderate' | 'severe'; type AsthmaSymptom = 'Difficulty breathing' | 'Wheezing' | 'Coughing' | 'Chest tightness or pressure'; type AsthmaImpact = 'Wake up at night' | 'Limit your daily activity' | 'Use your rescue inhaler'; type AsthmaTrigger = 'Cold/viral illness' | 'Animal exposure' | 'Seasonal allergens/pollen' | 'Exercise' | 'Smoke (tobacco or wood burning)' | 'Extreme weather changes' | 'Air pollution' | 'Strong smells' | 'Chemicals/cleaning supplies' | 'Dust' | 'Mold' | 'Dust mites' | 'Rodents' | 'Cockroaches' | 'Taken a NSAID (non-steroidal anti-inflammatory drugs including aspirin and ibuprofen)' | 'Taken a beta blocker' | 'Had heartburn' | 'Drank red wine' | 'Tried any new foods' | 'Cooked without a fan or open window' | 'Had a pet sleep in your bed' | 'Burned incense or a candle'; interface AsthmaLogEntry { identifier: string; symptomLevel: AsthmaSymptomLevel; symptoms: AsthmaSymptom[]; impacts: AsthmaImpact[]; triggers: AsthmaTrigger[]; } interface AsthmaActionPlan { id: string; url: string; } interface AsthmaControlStatusHeaderProps { previewState?: 'loading' | AsthmaControlStatusHeaderPreviewState; participant: AsthmaParticipant; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$20(props: AsthmaControlStatusHeaderProps): React$1.JSX.Element | null; interface AsthmaLogEntryDetailsProps { previewState?: 'loading' | AsthmaLogEntryDetailsPreviewState; date: Date; logTodayEntrySurveyName: string; logYesterdayEntrySurveyName: string; editLogEntryUrl: string; infoUrl: string; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$1$(props: AsthmaLogEntryDetailsProps): React$1.JSX.Element; interface AsthmaLogEntryHeaderProps { previewState?: 'loading' | AsthmaLogEntryHeaderPreviewState; logTodayEntrySurveyName: string; logYesterdayEntrySurveyName: string; dayViewUrl: string; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$1_(props: AsthmaLogEntryHeaderProps): React$1.JSX.Element | null; interface AsthmaPostEnrollmentSurveyTriggerProps { previewState?: boolean; postEnrollmentSurveyName: string; postEnrollmentMobileSurveyName: string; logTodayEntrySurveyName: string; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$1Z(props: AsthmaPostEnrollmentSurveyTriggerProps): null; interface AsthmaProviderReportProps { previewState?: AsthmaProviderReportPreviewState; logEntrySurveyName: string; innerRef?: React$1.Ref<HTMLDivElement>; } declare function export_default$1Y(props: AsthmaProviderReportProps): React$1.JSX.Element; type ColorDefinition = string | { lightMode?: string; darkMode?: string; }; declare function resolveColor(colorScheme: "light" | "dark", colorDefinition?: ColorDefinition): string | undefined; declare function getColorFromAssortment(index: number): string; interface ActionProps { title?: string; titleIcon?: ReactElement; icon?: ReactElement; subtitle?: string; onClick?: Function; children?: React$1.ReactNode; className?: string; indicatorIcon?: IconDefinition; indicator?: ReactElement; indicatorValue?: string; indicatorPosition?: "default" | "topRight"; bottomBorder?: boolean; innerRef?: React$1.Ref<HTMLDivElement>; titleColor?: ColorDefinition; subtitleColor?: ColorDefinition; renderAs?: "div" | "button"; } declare function Action(props: ActionProps): React$1.JSX.Element; interface ActivityMeterProps { label: string; value: string; icon: ReactElement; fillPercent: number; averageFillPercent: number; color: ColorDefinition; message?: string; className?: string; innerRef?: React$1.Ref<HTMLDivElement>; thresholdLabel?: string; } declare function ActivityMeter(props: ActivityMeterProps): React$1.JSX.Element; declare enum DailyDataType { AppleHealthDistanceWalkingRunning = "AppleHealthDistanceWalkingRunning", AppleHealthFlightsClimbed = "AppleHealthFlightsClimbed", AppleHealthHeartRateRange = "AppleHealthHeartRateRange", AppleHealthHrv = "AppleHealthHrv", AppleHealthMaxHeartRate = "AppleHealthMaxHeartRate", AppleHealthMindfulMinutes = "AppleHealthMindfulMinutes", AppleHealthRestingHeartRate = "AppleHealthRestingHeartRate", AppleHealthSleepMinutes = "AppleHealthSleepMinutes", AppleHealthRemSleepMinutes = "AppleHealthSleepRemMinutes", AppleHealthDeepSleepMinutes = "AppleHealthSleepDeepMinutes", AppleHealthCoreSleepMinutes = "AppleHealthSleepCoreMinutes", AppleHealthInBedMinutes = "AppleHealthInBedMinutes", AppleHealthStandMinutes = "AppleHealthStandMinutes", AppleHealthSteps = "AppleHealthSteps", AppleHealthStepsWhileWearingDevice = "AppleHealthStepsWhileWearingDevice", AppleHealthTherapyMinutes = "AppleHealthTherapyMinutes", AppleHealthWalkingHeartRateAverage = "AppleHealthWalkingHeartRateAverage", AppleHealthActiveEnergyBurned = "AppleHealthActiveEnergyBurned", AppleHealthNumberOfAlcoholicBeverages = "AppleHealthNumberOfAlcoholicBeverages", FitbitSedentaryMinutes = "FitbitSedentaryMinutes", FitbitActiveMinutes = "FitbitActiveMinutes", FitbitLightlyActiveMinutes = "FitbitLightlyActiveMinutes", FitbitFairlyActiveMinutes = "FitbitFairlyActiveMinutes", FitbitVeryActiveMinutes = "FitbitVeryActiveMinutes", FitbitBreathingRate = "FitbitBreathingRate", FitbitCaloriesBurned = "FitbitCaloriesBurned", FitbitElevatedHeartRateMinutes = "FitbitElevatedHeartRateMinutes", FitbitFatBurnHeartRateMinutes = "FitbitFatBurnHeartRateMinutes", FitbitCardioHeartRateMinutes = "FitbitCardioHeartRateMinutes", FitbitPeakHeartRateMinutes = "FitbitPeakHeartRateMinutes", FitbitFloors = "FitbitFloors", FitbitHrv = "FitbitHrv", FitbitRestingHeartRate = "FitbitRestingHeartRate", FitbitSleepMinutes = "FitbitSleepMinutes", FitbitLightSleepMinutes = "FitbitLightSleepMinutes", FitbitRemSleepMinutes = "FitbitRemSleepMinutes", FitbitDeepSleepMinutes = "FitbitDeepSleepMinutes", FitbitSpO2 = "FitbitSpO2", FitbitSteps = "FitbitSteps", FitbitWearMinutes = "FitbitWearMinutes", GarminSteps = "GarminSteps", GarminDistance = "GarminDistance", GarminFloors = "GarminFloors", GarminActiveMinutes = "GarminActiveMinutes", GarminActiveCalories = "GarminActiveCalories", GarminRestingCalories = "GarminRestingCalories", GarminTotalCalories = "GarminTotalCalories", GarminRestingHeartRate = "GarminRestingHeartRate", GarminMinHeartRate = "GarminMinHeartRate", GarminMaxHeartRate = "GarminMaxHeartRate", GarminAverageHeartRate = "GarminAverageHeartRate", GarminMaxStressLevel = "GarminMaxStressLevel", GarminAverageStressLevel = "GarminAverageStressLevel", GarminTotalStressMinutes = "GarminTotalStressMinutes", GarminLowStressMinutes = "GarminLowStressMinutes", GarminMediumStressMinutes = "GarminMediumStressMinutes", GarminHighStressMinutes = "GarminHighStressMinutes", GarminTotalSleepMinutes = "GarminTotalSleepMinutes", GarminLightSleepMinutes = "GarminLightSleepMinutes", GarminDeepSleepMinutes = "GarminDeepSleepMinutes", GarminRemSleepMinutes = "GarminRemSleepMinutes", GarminAwakeMinutes = "GarminAwakeMinutes", GarminSleepScore = "GarminSleepScore", GoogleFitMindfulMinutes = "GoogleFitMindfulMinutes", GoogleFitSteps = "GoogleFitSteps", GoogleFitTherapyMinutes = "GoogleFitTherapyMinutes", Steps = "Steps", StepsWithGoogleFit = "StepsWithGoogleFit", RestingHeartRate = "RestingHeartRate", SleepMinutes = "SleepMinutes", MindfulMinutes = "MindfulMinutes", TherapyMinutes = "TherapyMinutes", AirQuality = "AirQuality", HomeAirQuality = "HomeAirQuality", WorkAirQuality = "WorkAirQuality", HealthConnectRestingHeartRate = "HealthConnectRestingHeartRate", HealthConnectTotalSleepMinutes = "HealthConnectTotalSleepMinutes", HealthConnectLightSleepMinutes = "HealthConnectLightSleepMinutes", HealthConnectRemSleepMinutes = "HealthConnectRemSleepMinutes", HealthConnectDeepSleepMinutes = "HealthConnectDeepSleepMinutes", HealthConnectSteps = "HealthConnectSteps", HealthConnectDistance = "HealthConnectDistance", HealthConnectMaxHeartRate = "HealthConnectMaxHeartRate", HealthConnectMinHeartRate = "HealthConnectMinHeartRate", HealthConnectActiveCaloriesBurned = "HealthConnectActiveCaloriesBurned", HealthConnectTotalCaloriesBurned = "HealthConnectTotalCaloriesBurned", OuraSteps = "OuraSteps", OuraRestingHeartRate = "OuraRestingHeartRate", OuraSleepMinutes = "OuraSleepMinutes" } interface DailyDataTypeDefinition { dataSource?: "Unified" | "AppleHealth" | "Garmin" | "Fitbit" | "GoogleFit" | "AirQuality" | "Oura" | "HealthConnect"; type: string; dataProvider: DailyDataProvider; availabilityCheck: DailyDataAvailabilityCheck; labelKey?: string; icon: ReactElement; formatter: (value: number) => string; yAxisConverter?: (value: number) => number; previewDataRange: [number, number]; requiresV2Api?: boolean; } interface CombinedDataCollectionSettings { settings: DataCollectionSettings; deviceDataV2Types: SupportedDeviceDataV2DataType[]; } type DailyDataQueryResult = { [key: string]: number; }; type DailyDataProvider = (startDate: Date, endDate: Date) => Promise<DailyDataQueryResult>; type DailyDataAvailabilityCheck = (CombinedDataCollectionSettings: CombinedDataCollectionSettings, modifiedAfter?: Date) => Promise<boolean>; declare function registerDailyDataProvider(type: string, provider: DailyDataProvider, availabilityCheck: DailyDataAvailabilityCheck): void; declare function registerDailyDataTypeDefinition(typeDefinition: DailyDataTypeDefinition): void; declare function checkDailyDataAvailability(type: string, modifiedAfter?: Date): Promise<boolean>; declare function queryDailyData(type: string, startDate: Date, endDate: Date, preview?: boolean): Promise<DailyDataQueryResult>; declare function queryPreviewDailyData(type: string, startDate: Date, endDate: Date, fillPercentage?: number): Promise<DailyDataQueryResult>; declare function getAllDailyDataTypes(): DailyDataTypeDefinition[]; declare function getDailyDataTypeDefinition(type: string): DailyDataTypeDefinition; declare function supportedLocales(): string[]; /** Gets the currently active locale, accounting for which ones are supported (e.g., en-UK will fall back to just en) */ declare function getCurrentLocale(specifiedLocale?: string): string; declare function language(key: string, specifiedLocale?: string, args?: { [key: string]: string; }): string; /** Gets the language code from an ISO locale string (e.g., en-US returns en. */ declare function getLanguageCodeFromIso(locale: string): string; /** Gets the country code from an ISO locale string (e.g., en-US returns us). */ declare function getCountryCodeFromIso(locale: string): string | undefined; declare function getIntlLocale(): string; declare function getDateLocale(): Locale; /** * Uses date-fns format strings. * Note that some languages don't treat day/month names as proper nouns, so a string might come * back like "27 marzo 2024". The capitalize param lets you auto-capitalize the first letter in case * the string is being used like a title/heading. */ declare function formatDateForLocale(dateOrDateString: string | Date | undefined, formatString: string, capitalize?: boolean): string; declare function formatNumberForLocale(value: number | undefined, fractionDigits?: number): string; /** e.g., 7h 5m */ declare function formatMinutesForLocale(value: number): string; declare function capitalizeFirstLetterForLocale(str: string): string; type BasicPointsForBadgesActivityType = "dailyData" | "surveyCompleted" | "connectExternalAccount" | "custom"; interface BasicPointsForBadgesActivity { key: string; type: BasicPointsForBadgesActivityType; points: number; } interface BasicPointsForBadgesState { badges: number[]; activityStates: { [key: string]: BasicPointsForBadgesActivityState; }; } interface BasicPointsForBadgesActivityState { pointsAwarded: number; } type ConnectExternalActivityType = "Provider" | "Health Plan" | "Device Manufacturer"; interface ConnectExternalAccountActivity extends BasicPointsForBadgesActivity { type: "connectExternalAccount"; providerCategories: ConnectExternalActivityType[]; } interface DailyDataActivity extends BasicPointsForBadgesActivity { type: "dailyData"; activationDate: Date; awardThreshold: number; dailyDataType: string; } interface CustomActivity extends BasicPointsForBadgesActivity { type: "custom"; customField: string; } interface SurveyCompletionActivity extends BasicPointsForBadgesActivity { type: "surveyCompleted"; surveyName: string; limit?: number; } declare function getDayKey(date: string | Date): string; type WeekStartsOn = "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "6DaysAgo" | "7DaysAgo"; declare function getWeekStart(weekStartsOn?: WeekStartsOn): Date; declare function getMonthStart(): Date; declare function get6MonthStart(): Date; declare function getDefaultIntervalStart(intervalType: "Week" | "Month" | "6Month", weekStartsOn?: WeekStartsOn): Date; type BloodPressureDeviceDataSource = 'AppleHealth' | 'GoogleFit' | 'Omron' | 'HealthConnect'; declare function export_default$1X(surveyDataSource?: SurveyBloodPressureDataParameters, bloodPressureDeviceDataSources?: BloodPressureDeviceDataSource[]): Promise<BloodPressureDataPoint[]>; interface SurveyBloodPressureDataParameters { surveyName: string; dateResultIdentifier?: string; systolicResultIdentifier: string; diastolicResultIdentifier: string; } interface BloodPressureDataPoint { date: Date; systolic: number; diastolic: number; } declare function useInitializeView(initialize: () => void, additionalEvents?: EventName[], dependencies?: DependencyList): void; interface RelativeActivityQueryResult { relativePercent?: number; value: number; threshold?: number; } interface RelativeActivityDataType { dailyDataType: string; color?: ColorDefinition; overThresholdColor?: ColorDefinition; threshold?: number | "30DayAverage"; label?: string; icon?: React.ReactElement; formatter?: (number: number) => string; } declare function queryRelativeActivity(startDate: Date, endDate: Date, dataTypes: RelativeActivityDataType[], preview: boolean): Promise<{ [key: string]: { [key: string]: RelativeActivityQueryResult; }; }>; declare function awardPointsAndBadges(activities: BasicPointsForBadgesActivity[], state: BasicPointsForBadgesState, pointsPerBadge: number, participantInfo: ParticipantInfo): Promise<BasicPointsForBadgesState>; declare function sumActivityPoints(activityStates: { [key: string]: BasicPointsForBadgesActivityState; }): number; declare function simpleAvailabilityCheck(namespace: DeviceDataNamespace | DeviceDataV2Namespace, type: string | string[], isV2?: boolean): (combinedSettings: CombinedDataCollectionSettings, modifiedAfter?: Date) => Promise<boolean>; declare const allTypeDefinitions: DailyDataTypeDefinition[]; interface StandardDailyDataTypeDefinition extends DailyDataTypeDefinition { color: string; } declare const standardDailyDataTypes: StandardDailyDataTypeDefinition[]; interface LineChartOptions { lineColor?: string; domainMin?: number | "Auto"; } interface BarChartOptions { barColor?: ColorDefinition; thresholds?: BarChartThreshold[]; } interface BarChartThreshold { value: number; referenceLineColor?: ColorDefinition; overThresholdBarColor?: ColorDefinition; } interface AreaChartOptions { lineColor?: ColorDefinition; areaColor?: ColorDefinition; } interface ChartSeries { dataKey: string; color?: ColorDefinition; } interface AreaChartSeries extends ChartSeries { areaColor?: ColorDefinition; } interface TimeSeriesChartContainerOptions { height?: string | number; } interface TimeSeriesGridOptions { hide?: boolean; } interface TimeSeriesChartXAxisOptions { height?: number | undefined; domain?: [number | string, number | string]; ticks?: (string | number)[]; tickFormatter?: (value: any, index: number) => string; } interface TimeSeriesChartYAxisOptions { width?: number; domain?: [number | string, number | string]; ticks?: (string | number)[]; } type TimeSeriesChartLabel = ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>) | boolean | string | number; type TimeSeriesChartLineDot = ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>) | boolean; interface TimeSeriesChartLineOptions { connectNulls?: boolean; dot?: TimeSeriesChartLineDot; label?: TimeSeriesChartLabel; strokeWidth?: number; animationDuration?: number; } interface TimeSeriesChartOptions { containerOptions?: TimeSeriesChartContainerOptions; gridOptions?: TimeSeriesGridOptions; xAxisOptions?: TimeSeriesChartXAxisOptions; yAxisOptions?: TimeSeriesChartYAxisOptions; } interface MultiSeriesLineChartOptions extends TimeSeriesChartOptions { thresholds?: ChartThreshold[]; lineOptions?: TimeSeriesChartLineOptions; } interface MultiSeriesBarChartOptions extends TimeSeriesChartOptions { thresholds?: ChartThreshold[]; } interface ChartThreshold { value: number; referenceLineColor?: ColorDefinition; overThresholdColor?: ColorDefinition; } interface TimeSeriesDataPoint { timestamp: number; [key: string]: any; } interface TimeSeriesChartProps { title?: string; intervalType?: "Week" | "Month" | "6Month" | "Day"; intervalStart: Date; data?: TimeSeriesDataPoint[]; expectedDataInterval?: Duration; series: ChartSeries[] | AreaChartSeries[]; chartHasData: boolean; tooltip?: ({ active, payload, label }: any) => React$1.JSX.Element | null; chartType: "Line" | "Bar" | "Area"; options?: MultiSeriesLineChartOptions | MultiSeriesBarChartOptions; syncId?: string; children?: React$1.ReactNode; innerRef?: React$1.Ref<HTMLDivElement>; } declare function TimeSeriesChart(props: TimeSeriesChartProps): React$1.JSX.Element; declare function createLineChartDefs(layoutContext: LayoutContext, gradientKey: string, series: ChartSeries[], options: MultiSeriesLineChartOptions | undefined, dataKeys: string[], data: TimeSeriesDataPoint[]): React$1.JSX.Element; declare function createBarChartDefs(layoutContext: LayoutContext, gradientKey: string, series: ChartSeries[], options?: MultiSeriesBarChartOptions): React$1.JSX.Element; declare function createAreaChartDefs(layoutContext: LayoutContext, gradientKey: string, series: AreaChartSeries[]): React$1.JSX.Element; type IntradayHeartRateAggregationOption = "avg" | "min" | "max"; type IntradayHeartRateData = { [key: number]: number; }; declare function export_default$1W(dataSources: DeviceDataV2Namespace[], startDate: Date, endDate: Date, aggregationOption: IntradayHeartRateAggregationOption, aggregationIntervalMinutes: number): Promise<IntradayHeartRateData>; interface Reading { timestamp: Date; value: number; } interface ReadingRange { date: Date; min: number; max: number; average: number; } type MealType = 'meal' | 'snack' | 'drink'; declare function getMealTypeDisplayText(mealType: MealType): string; interface Meal { id: Guid; timestamp: Date; type: MealType; description?: string; hasImage?: boolean; archiveTimestamp?: Date; created?: Date; lastModified?: Date; } interface MealReference { date: Date; id: Guid; } declare function getGlucoseReadings(startDate: Date, endDate?: Date, combinedDataCollectionSettings?: CombinedDataCollectionSettings): Promise<Reading[]>; declare function computeBestFitGlucoseValue(observationDate: Date, readings: Reading[]): number; declare function computeGlucoseReadingRanges(readings: Reading[]): ReadingRange[]; declare function computeGlucoseReadingRecentAverage(readings: Reading[], endDate: Date, pastDayCount?: number): number | undefined; declare function getMeals(date: Date): Promise<Meal[]>; declare function saveMeals(date: Date, meals: Meal[]): Promise<void>; declare function prepareMealForEditing(meal: Meal): Promise<void>; declare function getMealToEdit(): Promise<MealReference | undefined>; declare function uploadMealImageFile(meal: Meal, file: File): Promise<void>; declare function getMealImageUrls(meals: Meal[]): Promise<{ [key: string]: string; }>; declare function generateGlucose(startDate: Date, endDate?: Date): Promise<Reading[]>; declare function generateSteps(date: Date): Reading[]; declare function generateSleep(date: Date): Reading[]; declare function getSleepMinutes(date: Date, combinedDataCollectionSettings?: CombinedDataCollectionSettings): Promise<number | undefined>; declare function getSteps(date: Date, combinedDataCollectionSettings?: CombinedDataCollectionSettings): Promise<Reading[]>; declare function getStressLevel(date: Date): Promise<number | undefined>; declare function saveStressLevel(date: Date, stressLevel: number): void; declare function deleteStressLevel(date: Date): void; declare function timestampSortAsc(a: { timestamp: Date; }, b: { timestamp: Date; }): number; declare const PersistParticipantInfoTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ demographics: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; mobilePhone: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; middleName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; dateOfBirth: z.ZodOptional<z.ZodString>; gender: z.ZodOptional<z.ZodString>; preferredLanguage: z.ZodOptional<z.ZodString>; street1: z.ZodOptional<z.ZodString>; street2: z.ZodOptional<z.ZodString>; city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; postalCode: z.ZodOptional<z.ZodString>; unsubscribedFromEmails: z.ZodOptional<z.ZodString>; unsubscribedFromSms: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; mobilePhone?: string | undefined; firstName?: string | undefined; middleName?: string | undefined; lastName?: string | undefined; dateOfBirth?: string | undefined; gender?: string | undefined; preferredLanguage?: string | undefined; street1?: string | undefined; street2?: string | undefined; city?: string | undefined; state?: string | undefined; postalCode?: string | undefined; unsubscribedFromEmails?: string | undefined; unsubscribedFromSms?: string | undefined; }, { email?: string | undefined; mobilePhone?: string | undefined; firstName?: string | undefined; middleName?: string | undefined; lastName?: string | undefined; dateOfBirth?: string | undefined; gender?: string | undefined; preferredLanguage?: string | undefined; street1?: string | undefined; street2?: string | undefined; city?: string | undefined; state?: string | undefined; postalCode?: string | undefined; unsubscribedFromEmails?: string | undefined; unsubscribedFromSms?: string | undefined; }>>; customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { demographics?: { email?: string | undefined; mobilePhone?: string | undefined; firstName?: string | undefined; middleName?: string | undefined; lastName?: string | undefined; dateOfBirth?: string | undefined; gender?: string | undefined; preferredLanguage?: string | undefined; street1?: string | undefined; street2?: string | undefined; city?: string | undefined; state?: string | undefined; postalCode?: string | undefined; unsubscribedFromEmails?: string | undefined; unsubscribedFromSms?: string | undefined; } | undefined; customFields?: Record<string, string> | undefined; }, { demographics?: { email?: string | undefined; mobilePhone?: string | undefined; firstName?: string | undefined; middleName?: string | undefined; lastName?: string | undefined; dateOfBirth?: string | undefined; gender?: string | undefined; preferredLanguage?: string | undefined; street1?: string | undefined; street2?: string | undefined; city?: string | undefined; state?: string | undefined; postalCode?: string | undefined; unsubscribedFromEmails?: string | undefined; unsubscribedFromSms?: string | undefined; } | undefined; customFields?: Record<string, string> | undefined; }>>; declare const QueryAppleHealthWorkoutsTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ endDate: z.ZodOptional<z.ZodString>; startDate: z.ZodOptional<z.ZodString>; pageSize: z.ZodOptional<z.ZodNumber>; pageID: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { endDate?: string | undefined; startDate?: string | undefined; pageSize?: number | undefined; pageID?: string | undefined; }, { endDate?: string | undefined; startDate?: string | undefined; pageSize?: number | undefined; pageID?: string | undefined; }>>; declare const QueryAppleHealthActivitySummariesTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ endDate: z.ZodOptional<z.ZodString>; startDate: z.ZodOptional<z.ZodString>; pageSize: z.ZodOptional<z.ZodNumber>; pageID: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { endDate?: string | undefined; startDate?: string | undefined; pageSize?: number | undefined; pageID?: string | undefined; }, { endDate?: string | undefined; startDate?: string | undefined; pageSize?: number | undefined; pageID?: string | undefined; }>>; declare const QueryNotificationsTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ type: z.ZodOptional<z.ZodEnum<["Sms", "Push", "Email"]>>; statusCode: z.ZodOptional<z.ZodEnum<["Succeeded", "Unsubscribed", "MissingContactInfo", "NoRegisteredMobileDevice", "NoAssociatedUser", "ServiceError"]>>; sentBefore: z.ZodOptional<z.ZodString>; sentAfter: z.ZodOptional<z.ZodString>; identifier: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type?: "Sms" | "Push" | "Email" | undefined; statusCode?: "Succeeded" | "Unsubscribed" | "MissingContactInfo" | "NoRegisteredMobileDevice" | "NoAssociatedUser" | "ServiceError" | undefined; sentBefore?: string | undefined; sentAfter?: string | undefined; identifier?: string | undefined; }, { type?: "Sms" | "Push" | "Email" | undefined; statusCode?: "Succeeded" | "Unsubscribed" | "MissingContactInfo" | "NoRegisteredMobileDevice" | "NoAssociatedUser" | "ServiceError" | undefined; sentBefore?: string | undefined; sentAfter?: string | undefined; identifier?: string | undefined; }>>; declare const QuerySurveyAnswersTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ surveyResultID: z.ZodOptional<z.ZodString>; surveyID: z.ZodOptional<z.ZodString>; surveyName: z.ZodOptional<z.ZodString>; after: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodString>; stepIdentifier: z.ZodOptional<z.ZodString>; resultIdentifier: z.ZodOptional<z.ZodString>; answer: z.ZodOptional<z.ZodString>; pageID: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { pageID?: string | undefined; surveyResultID?: string | undefined; surveyID?: string | undefined; surveyName?: string | undefined; after?: string | undefined; before?: string | undefined; stepIdentifier?: string | undefined; resultIdentifier?: string | undefined; answer?: string | undefined; }, { pageID?: string | undefined; surveyResultID?: string | undefined; surveyID?: string | undefined; surveyName?: string | undefined; after?: string | undefined; before?: string | undefined; stepIdentifier?: string | undefined; resultIdentifier?: string | undefined; answer?: string | undefined; }>>; declare const QueryDeviceDataV2Tool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ namespace: z.ZodEnum<["Fitbit", "AppleHealth", "Garmin", "Dexcom", "HealthConnect"]>; type: z.ZodString; observedAfter: z.ZodOptional<z.ZodString>; observedBefore: z.ZodOptional<z.ZodString>; dataSource: z.ZodOptional<z.ZodObject<{ sourceName: z.ZodOptional<z.ZodString>; sourceIdentifier: z.ZodOptional<z.ZodString>; sourceProductType: z.ZodOptional<z.ZodString>; sourceOperatingSystemVersion: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; }, { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; }>>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: string; namespace: "AppleHealth" | "Garmin" | "Fitbit" | "HealthConnect" | "Dexcom"; observedAfter?: string | undefined; observedBefore?: string | undefined; dataSource?: { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; } | undefined; properties?: Record<string, string> | undefined; }, { type: string; namespace: "AppleHealth" | "Garmin" | "Fitbit" | "HealthConnect" | "Dexcom"; observedAfter?: string | undefined; observedBefore?: string | undefined; dataSource?: { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; } | undefined; properties?: Record<string, string> | undefined; }>>; declare const QueryDeviceDataV2AggregateTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<z.objectUtil.extendShape<{ namespace: z.ZodEnum<["Fitbit", "AppleHealth", "Garmin", "Dexcom", "HealthConnect"]>; type: z.ZodString; observedAfter: z.ZodOptional<z.ZodString>; observedBefore: z.ZodOptional<z.ZodString>; dataSource: z.ZodOptional<z.ZodObject<{ sourceName: z.ZodOptional<z.ZodString>; sourceIdentifier: z.ZodOptional<z.ZodString>; sourceProductType: z.ZodOptional<z.ZodString>; sourceOperatingSystemVersion: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; }, { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; }>>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, { intervalAmount: z.ZodNumber; intervalType: z.ZodEnum<["Minutes", "Hours", "Days", "Weeks", "Months"]>; aggregateFunctions: z.ZodArray<z.ZodEnum<["sum", "avg", "count", "min", "max"]>, "many">; }>, "strip", z.ZodTypeAny, { type: string; namespace: "AppleHealth" | "Garmin" | "Fitbit" | "HealthConnect" | "Dexcom"; intervalAmount: number; intervalType: "Minutes" | "Days" | "Hours" | "Weeks" | "Months"; aggregateFunctions: ("max" | "min" | "sum" | "avg" | "count")[]; observedAfter?: string | undefined; observedBefore?: string | undefined; dataSource?: { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; } | undefined; properties?: Record<string, string> | undefined; }, { type: string; namespace: "AppleHealth" | "Garmin" | "Fitbit" | "HealthConnect" | "Dexcom"; intervalAmount: number; intervalType: "Minutes" | "Days" | "Hours" | "Weeks" | "Months"; aggregateFunctions: ("max" | "min" | "sum" | "avg" | "count")[]; observedAfter?: string | undefined; observedBefore?: string | undefined; dataSource?: { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; } | undefined; properties?: Record<string, string> | undefined; }>>; declare const QueryDailySleepTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<z.objectUtil.extendShape<{ namespace: z.ZodEnum<["Fitbit", "AppleHealth", "Garmin", "Dexcom", "HealthConnect"]>; type: z.ZodString; observedAfter: z.ZodOptional<z.ZodString>; observedBefore: z.ZodOptional<z.ZodString>; dataSource: z.ZodOptional<z.ZodObject<{ sourceName: z.ZodOptional<z.ZodString>; sourceIdentifier: z.ZodOptional<z.ZodString>; sourceProductType: z.ZodOptional<z.ZodString>; sourceOperatingSystemVersion: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; }, { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; }>>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, { type: z.ZodString; }>, "strip", z.ZodTypeAny, { type: string; namespace: "AppleHealth" | "Garmin" | "Fitbit" | "HealthConnect" | "Dexcom"; observedAfter?: string | undefined; observedBefore?: string | undefined; dataSource?: { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; } | undefined; properties?: Record<string, string> | undefined; }, { type: string; namespace: "AppleHealth" | "Garmin" | "Fitbit" | "HealthConnect" | "Dexcom"; observedAfter?: string | undefined; observedBefore?: string | undefined; dataSource?: { sourceIdentifier?: string | undefined; sourceName?: string | undefined; sourceProductType?: string | undefined; sourceOperatingSystemVersion?: string | undefined; } | undefined; properties?: Record<string, string> | undefined; }>>; declare const QueryDailyDataTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ type: z.ZodString; startDate: z.ZodString; endDate: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; endDate: string; startDate: string; }, { type: string; endDate: string; startDate: string; }>>; declare const GetDeviceDataV2AllDataTypesTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>; declare const GetAllDailyDataTypesTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>; declare const GetEhrNewsFeedPageTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ feed: z.ZodEnum<["Immunizations", "LabReports", "Procedures", "Reports"]>; pageID: z.ZodOptional<z.ZodString>; pageDate: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { feed: "Immunizations" | "Procedures" | "Reports" | "LabReports"; pageID?: string | undefined; pageDate?: string | undefined; }, { feed: "Immunizations" | "Procedures" | "Reports" | "LabReports"; pageID?: string | undefined; pageDate?: string | undefined; }>>; declare const GraphingTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ code: z.ZodString; }, "strip", z.ZodTypeAny, { code: string; }, { code: string; }>>; declare const UploadedFileQueryTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ category: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { category?: string | undefined; }, { category?: string | undefined; }>>; declare const GetUploadedFileTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ key: z.ZodString; }, "strip", z.ZodTypeAny, { key: string; }, { key: string; }>>; declare const SaveLastGraphTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{ fileName: z.ZodString; }, "strip", z.ZodTypeAny, { fileName: string; }, { fileName: string; }>>; declare const Tools_GetAllDailyDataTypesTool: typeof GetAllDailyDataTypesTool; declare const Tools_GetDeviceDataV2AllDataTypesTool: typeof GetDeviceDataV2AllDataTypesTool; declare const Tools_GetEhrNewsFeedPageTool: typeof GetEhrNewsFeedPageTool; declare const Tools_GetUploadedFileTool: typeof GetUploadedFileTool; declare const Tools_GraphingTool: typeof GraphingTool; declare const Tools_PersistParticipantInfoTool: typeof PersistParticipantInfoTool; declare const Tools_QueryAppleHealthActivitySummariesTool: typeof QueryAppleHealthActivitySummariesTool; declare const Tools_QueryAppleHealthWorkoutsTool: typeof QueryAppleHealthWorkoutsTool; declare const Tools_QueryDailyDataTool: typeof QueryDailyDataTool; declare const Tools_QueryDailySleepTool: typeof QueryDailySleepTool; declare const Tools_QueryDeviceDataV2AggregateTool: typeof QueryDeviceDataV2AggregateTool; declare const Tools_QueryDeviceDataV2Tool: typeof QueryDeviceDataV2Tool; declare const Tools_QueryNotificationsTool: typeof QueryNotificationsTool; declare const Tools_QuerySurveyAnswersTool: typeof QuerySurveyAnswersTool; declare const Tools_SaveLastGraphTool: typeof SaveLastGraphTool; declare const Tools_UploadedFileQueryTool: typeof UploadedFileQueryTool; declare namespace Tools { export { Tools_GetAllDailyDataTypesTool as GetAllDailyDataTypesTool, Tools_GetDeviceDataV2AllDataTypesTool as GetDeviceDataV2AllDataTypesTool, Tools_GetEhrNewsFeedPageTool as GetEhrNewsFeedPageTool, Tools_GetUploadedFileTool as GetUploadedFileTool, Tools_GraphingTool as GraphingTool, Tools_PersistParticipantInfoTool as PersistParticipantInfoTool, Tools_QueryAppleHealthActivitySummariesTool as QueryAppleHealthActivitySummariesTool, Tools_QueryAppleHealthWorkoutsTool as QueryAppleHealthWorkoutsTool, Tools_QueryDailyDataTool as QueryDailyDataTool, Tools_QueryDailySleepTool as QueryDailySleepTool, Tools_QueryDeviceDataV2AggregateTool as QueryDeviceDataV2AggregateTool, Tools_QueryDeviceDataV2Tool as QueryDeviceDataV2Tool, Tools_QueryNotificationsTool as QueryNotificationsTool, Tools_QuerySurveyAnswersTool as QuerySurveyAnswersTool, Tools_SaveLastGraphTool as SaveLastGraphTool, Tools_UploadedFileQueryTool as UploadedFileQueryTool }; } declare function predictableRandomNumber(message: string): Promise<number>; type SingleValueProviderType = 'static integer' | 'random integer' | 'custom field integer' | 'days with data'; declare abstract class SingleValueProvider<T> { type: SingleValueProviderType; protected constructor(type: SingleValueProviderType); abstract getValue(): Promise<T | undefined>; } declare class StaticIntegerValueProvider extends SingleValueProvider<number> { staticValue: number; constructor(staticValue: number); getValue(): Promise<number | undefined>; } declare class RandomIntegerValueProvider extends SingleValueProvider<number> { maxValue: number; constructor(maxValue: number); getValue(): Promise<number | undefined>; } declare class CustomFieldIntegerValueProvider extends SingleValueProvider<number> { customField: string; constructor(customField: string); getValue(): Promise<number | undefined>; } declare class DaysWithDataValueProvider extends SingleValueProvider<number> { dataType: string; daysInPast: number; constructor(dataType: string, daysInPast: number); getValue(): Promise<number | undefined>; } declare const createStaticIntegerValueProvider: (staticValue: number) => StaticIntegerValueProvider; declare const createRandomIntegerValueProvider: (maxValue: number) => RandomIntegerValueProvider; declare const createCustomFieldIntegerValueProvider: (customField: string) => CustomFieldIntegerValueProvider; declare const createDaysWithDataValueProvider: (dataType: string, daysInPast: number) => DaysWithDataValueProvider; declare function generateSampleData(startDate: Date, endDate: Date, min: number, ma