import { type HealthPermissions } from './types/permissions'; import { HealthLinkDataType, type ReadOptions } from './types/dataTypes'; import { type HealthLinkDataValue } from './types/results'; import { type WriteDataType, type WriteOptions } from './types/save'; /** * Initializes the health integration for the application by requesting the necessary permissions * based on the platform (iOS or Android). * * @param {HealthPermissions} permissions - The permissions required for accessing health data. * * @returns {Promise} A promise that resolves when the initialization and permission request process is complete. * * @example * ```typescript * const permissions = { * read: [HealthLinkPermissions.StepCount, HealthLinkPermissions.HeartRate], * write: [HealthLinkPermissions.StepCount] * }; * await initializeHealth(permissions); * ``` */ export declare const initializeHealth: (permissions: HealthPermissions) => Promise; /** * Checks the availability of the SDK on the current platform. * * On Android, it checks the SDK status and resolves to `true` if the SDK is available, * otherwise logs the reason for unavailability and resolves to `false`. * * On iOS, it uses AppleHealthKit to check availability and resolves to the result. * * @returns {Promise} A promise that resolves to `true` if the SDK is available, otherwise `false`. * * @example * isAvailable().then((available) => { * if (available) { * console.log('SDK is available'); * } else { * console.log('SDK is not available'); * } * }).catch((error) => { * console.error('Error checking SDK availability:', error); * }); */ export declare const isAvailable: () => Promise; /** * Reads health data of the specified type from the device. * * @param {T} dataType - The type of health data to read. Use the `HealthLinkDataType` enum. * @param {ReadOptions} options - The options for reading the health data. * @returns {Promise>>} A promise that resolves to an array of health data values. */ export declare const read: (dataType: T, options: ReadOptions) => Promise>>; /** * Writes health data to the appropriate platform's health store. * * @param {T} dataType - The type of data to be written, extending WriteDataType. * @param {WriteOptions} data - The data to be written. * @returns {Promise} A promise that resolves when the data has been written. * * @example * ```typescript * const dataType = 'heartRate'; * const data = { value: 72, timestamp: new Date() }; * await write(dataType, data); * ``` */ export declare const write: (dataType: T, data: WriteOptions) => Promise; export * from './types/units'; export * from './types/dataTypes'; export * from './types/save'; export * from './types/permissions'; //# sourceMappingURL=index.d.ts.map