UNPKG

expo-healthkit-module

Version:

Expo module providing Apple HealthKit / Android Health Connect integration for RN / expo apps.

26 lines 1.84 kB
import { NativeModule } from "expo"; import { AuthorizeResult, BackgroundSyncOptions, BackgroundSyncResult, BackgroundSyncStatus, ExpoHealthkitModuleEvents, GetHealthDataOptions, GetHealthDataResult, HealthDataQuery, HealthDataType, TypedHealthDataResult } from "./ExpoHealthkitModule.types"; declare class ExpoHealthkitModule extends NativeModule<ExpoHealthkitModuleEvents> { PI: number; hello(): string; setValueAsync(value: string): Promise<void>; authorizeHealthKit(): Promise<AuthorizeResult>; getHealthData(options: GetHealthDataOptions): Promise<GetHealthDataResult>; testGetHealthData(options: GetHealthDataOptions): Promise<GetHealthDataResult>; registerBackgroundTaskHandler(): Promise<BackgroundSyncResult>; enableBackgroundSync(options: BackgroundSyncOptions): Promise<BackgroundSyncResult>; getBackgroundSyncStatus(): Promise<BackgroundSyncStatus>; disableBackgroundSync(): Promise<BackgroundSyncResult>; notifyBackgroundSyncComplete(success: boolean): Promise<void>; getTypedHealthData<T extends HealthDataType>(options: HealthDataQuery & { identifier: T; }): Promise<TypedHealthDataResult<T>>; exportAllHealthData(options: { startDate: string; endDate: string; }): Promise<any>; } declare const _default: ExpoHealthkitModule; export default _default; export { AuthorizeResult, BackgroundSyncCompletePayload, BackgroundSyncOptions, BackgroundSyncResult, BackgroundSyncStatus, ExportedDataType, ExportedRecordData, ExportHealthDataOptions, ExportHealthDataResult, GetHealthDataOptions, GetHealthDataResult, HealthDataChangePayload, HealthDataError, HealthDataQuery, HealthDataSample, HealthDataType, HealthKitEventListener, HealthUnit, TypedHealthDataResult, } from "./ExpoHealthkitModule.types"; //# sourceMappingURL=ExpoHealthkitModule.d.ts.map