expo-healthkit-module
Version:
Expo module providing Apple HealthKit / Android Health Connect integration for RN / expo apps.
22 lines • 1.57 kB
TypeScript
import { AuthorizeResult, BackgroundSyncOptions, BackgroundSyncResult, BackgroundSyncStatus, GetHealthDataOptions, GetHealthDataResult, HealthDataError, HealthDataType } from "./src/ExpoHealthkitModule";
export { default } from "./src/ExpoHealthkitModule";
export * from "./src/ExpoHealthkitModule.types";
export declare function authorizeHealthKit(): Promise<AuthorizeResult>;
export declare function getHealthData(options: GetHealthDataOptions): Promise<GetHealthDataResult>;
export declare function registerBackgroundTaskHandler(): Promise<BackgroundSyncResult>;
export declare function enableBackgroundSync(options: BackgroundSyncOptions): Promise<BackgroundSyncResult>;
export declare function getBackgroundSyncStatus(): Promise<BackgroundSyncStatus>;
export declare function disableBackgroundSync(): Promise<BackgroundSyncResult>;
export declare function notifyBackgroundSyncComplete(success: boolean): Promise<void>;
export declare function getPlatformIdentifier(crossPlatformId: string): string;
export declare function getSupportedIdentifiers(): HealthDataType[];
export declare function isValidHealthDataIdentifier(identifier: string): identifier is HealthDataType;
export declare function hasHealthDataError(result: GetHealthDataResult): result is GetHealthDataResult & {
error: HealthDataError;
};
export declare function formatDateForHealthAPI(date: Date): string;
export declare function createDateRange(period: "today" | "yesterday" | "week" | "month" | "year"): {
startDate: string;
endDate: string;
};
//# sourceMappingURL=index.d.ts.map