import { Health } from '@ionic-native/health' ; hidden export interface HealthDataType { /**
    * Read only date types (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types)
    */ read ? : string [ ] ; /**
    * Write only date types (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types)
    */ write ? : string [ ] ; } hidden export interface HealthQueryOptions { /**
     * Start date from which to get data
     */ startDate : Date ; /**
     * End date from which to get data
     */ endDate : Date ; /**
     * Datatype to be queried (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types)
     */ dataType : string ; /**
     * Optional limit the number of values returned. Defaults to 1000
     */ limit ? : number ; /**
     * Optional indicator to sort values ascending or descending
     */ ascending ? : boolean ; /**
     * In Android, it is possible to query for "raw" steps or to select those as filtered by the Google Fit app.
     * In the latter case the query object must contain the field filtered: true.
     */ filtered ? : boolean ; } hidden export interface HealthQueryOptionsAggregated { /**
     * Start date from which to get data
     */ startDate : Date ; /**
     * End date from which to get data
     */ endDate : Date ; /**
     * Datatype to be queried (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types)
     */ dataType : string ; /**
     * if specified, aggregation is grouped an array of "buckets" (windows of time),
     * supported values are: 'hour', 'day', 'week', 'month', 'year'.
     */ bucket : string ; } hidden export interface HealthStoreOptions { /**
     * Start date from which to get data
     */ startDate : Date ; /**
     * End date from which to get data
     */ endDate : Date ; /**
     * Datatype to be queried (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types)
     */ dataType : string ; /**
     * Value of corresponding Datatype (see "Overview of valid datatypes")
     */ value : string ; /**
     * The source that produced this data. In iOS this is ignored and
     * set automatically to the name of your app.
     */ sourceName : string ; /**
     * The complete package of the source that produced this data.
     * In Android, if not specified, it's assigned to the package of the App. In iOS this is ignored and
     * set automatically to the bunde id of the app.
     */ sourceBundleId : string ; } hidden export interface HealthData { /**
     * Start date from which to get data
     */ startDate : Date ; /**
     * End date from which to get data
     */ endDate : Date ; /**
     * Value of corresponding Datatype (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types)
     */ value : string ; /**
     * Unit of corresponding value of Datatype (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types)
     */ unit : string ; /**
     * The source that produced this data. In iOS this is ignored and
     * set automatically to the name of your app.
     */ sourceName : string ; /**
     * The complete package of the source that produced this data.
     * In Android, if not specified, it's assigned to the package of the App. In iOS this is ignored and
     * set automatically to the bunde id of the app.
     */ sourceBundleId : string ; } export class HealthMock extends Health { return { Promise < boolean > } isAvailable ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; return { Promise < any > } promptInstallFit ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { Array < string | HealthDataType > } datatypes return { Promise < any > } requestAuthorization ( datatypes ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { Array < string | HealthDataType > } datatypes return { Promise < boolean > } isAuthorized ( datatypes ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; param queryOptions { HealthQueryOptions } return { Promise < HealthData > } query ( queryOptions ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param queryOptionsAggregated { HealthQueryOptionsAggregated } return { Promise < HealthData [ ] > } queryAggregated ( queryOptionsAggregated ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param storeOptions return { Promise < any > } store ( storeOptions ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }