expo-health-kit
Version:
A comprehensive TypeScript library for React Native and Expo that enables exporting Apple HealthKit data
16 lines (15 loc) • 635 B
TypeScript
import type { HealthKitDataType, HealthKitConfig, ExportOptions, ExportResult } from '../types';
export declare class ExpoHealthKit {
private config;
configure(config: HealthKitConfig): Promise<void>;
isHealthKitAvailable(): Promise<boolean>;
requestAuthorization(dataTypes: HealthKitDataType[]): Promise<{
success: boolean;
deniedTypes?: HealthKitDataType[];
}>;
exportData(options: ExportOptions): Promise<ExportResult>;
queryHealthData(dataType: HealthKitDataType, startDate: Date, endDate: Date, options?: {
limit?: number;
ascending?: boolean;
}): Promise<any[]>;
}