tns-platform-declarations
Version:
Platform-specific TypeScript declarations for NativeScript for accessing native objects
1,620 lines (846 loc) • 69.6 kB
TypeScript
declare class HKActivitySummary extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): HKActivitySummary; // inherited from NSObject
static new(): HKActivitySummary; // inherited from NSObject
activeEnergyBurned: HKQuantity;
activeEnergyBurnedGoal: HKQuantity;
appleExerciseTime: HKQuantity;
appleExerciseTimeGoal: HKQuantity;
appleStandHours: HKQuantity;
appleStandHoursGoal: HKQuantity;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
dateComponentsForCalendar(calendar: NSCalendar): NSDateComponents;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare class HKActivitySummaryQuery extends HKQuery {
static alloc(): HKActivitySummaryQuery; // inherited from NSObject
static new(): HKActivitySummaryQuery; // inherited from NSObject
updateHandler: (p1: HKActivitySummaryQuery, p2: NSArray<HKActivitySummary>, p3: NSError) => void;
constructor(o: { predicate: NSPredicate; resultsHandler: (p1: HKActivitySummaryQuery, p2: NSArray<HKActivitySummary>, p3: NSError) => void; });
initWithPredicateResultsHandler(predicate: NSPredicate, handler: (p1: HKActivitySummaryQuery, p2: NSArray<HKActivitySummary>, p3: NSError) => void): this;
}
declare class HKActivitySummaryType extends HKObjectType {
static alloc(): HKActivitySummaryType; // inherited from NSObject
static new(): HKActivitySummaryType; // inherited from NSObject
}
declare class HKAnchoredObjectQuery extends HKQuery {
static alloc(): HKAnchoredObjectQuery; // inherited from NSObject
static new(): HKAnchoredObjectQuery; // inherited from NSObject
updateHandler: (p1: HKAnchoredObjectQuery, p2: NSArray<HKSample>, p3: NSArray<HKDeletedObject>, p4: HKQueryAnchor, p5: NSError) => void;
constructor(o: { type: HKSampleType; predicate: NSPredicate; anchor: number; limit: number; completionHandler: (p1: HKAnchoredObjectQuery, p2: NSArray<HKSample>, p3: number, p4: NSError) => void; });
constructor(o: { type: HKSampleType; predicate: NSPredicate; anchor: HKQueryAnchor; limit: number; resultsHandler: (p1: HKAnchoredObjectQuery, p2: NSArray<HKSample>, p3: NSArray<HKDeletedObject>, p4: HKQueryAnchor, p5: NSError) => void; });
initWithTypePredicateAnchorLimitCompletionHandler(type: HKSampleType, predicate: NSPredicate, anchor: number, limit: number, handler: (p1: HKAnchoredObjectQuery, p2: NSArray<HKSample>, p3: number, p4: NSError) => void): this;
initWithTypePredicateAnchorLimitResultsHandler(type: HKSampleType, predicate: NSPredicate, anchor: HKQueryAnchor, limit: number, handler: (p1: HKAnchoredObjectQuery, p2: NSArray<HKSample>, p3: NSArray<HKDeletedObject>, p4: HKQueryAnchor, p5: NSError) => void): this;
}
declare class HKAudiogramSample extends HKSample {
static alloc(): HKAudiogramSample; // inherited from NSObject
static audiogramSampleWithSensitivityPointsStartDateEndDateMetadata(sensitivityPoints: NSArray<HKAudiogramSensitivityPoint> | HKAudiogramSensitivityPoint[], startDate: Date, endDate: Date, metadata: NSDictionary<string, any>): HKAudiogramSample;
static new(): HKAudiogramSample; // inherited from NSObject
readonly sensitivityPoints: NSArray<HKAudiogramSensitivityPoint>;
}
declare class HKAudiogramSampleType extends HKSampleType {
static alloc(): HKAudiogramSampleType; // inherited from NSObject
static new(): HKAudiogramSampleType; // inherited from NSObject
}
declare class HKAudiogramSensitivityPoint extends NSObject {
static alloc(): HKAudiogramSensitivityPoint; // inherited from NSObject
static new(): HKAudiogramSensitivityPoint; // inherited from NSObject
static sensitivityPointWithFrequencyLeftEarSensitivityRightEarSensitivityError(frequency: HKQuantity, leftEarSensitivity: HKQuantity, rightEarSensitivity: HKQuantity): HKAudiogramSensitivityPoint;
readonly frequency: HKQuantity;
readonly leftEarSensitivity: HKQuantity;
readonly rightEarSensitivity: HKQuantity;
}
declare const enum HKAuthorizationRequestStatus {
Unknown = 0,
ShouldRequest = 1,
Unnecessary = 2
}
declare const enum HKAuthorizationStatus {
NotDetermined = 0,
SharingDenied = 1,
SharingAuthorized = 2
}
declare const enum HKBiologicalSex {
NotSet = 0,
Female = 1,
Male = 2,
Other = 3
}
declare class HKBiologicalSexObject extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): HKBiologicalSexObject; // inherited from NSObject
static new(): HKBiologicalSexObject; // inherited from NSObject
readonly biologicalSex: HKBiologicalSex;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare const enum HKBloodGlucoseMealTime {
Preprandial = 1,
Postprandial = 2
}
declare const enum HKBloodType {
NotSet = 0,
APositive = 1,
ANegative = 2,
BPositive = 3,
BNegative = 4,
ABPositive = 5,
ABNegative = 6,
OPositive = 7,
ONegative = 8
}
declare class HKBloodTypeObject extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): HKBloodTypeObject; // inherited from NSObject
static new(): HKBloodTypeObject; // inherited from NSObject
readonly bloodType: HKBloodType;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare const enum HKBodyTemperatureSensorLocation {
Other = 0,
Armpit = 1,
Body = 2,
Ear = 3,
Finger = 4,
GastroIntestinal = 5,
Mouth = 6,
Rectum = 7,
Toe = 8,
EarDrum = 9,
TemporalArtery = 10,
Forehead = 11
}
declare class HKCDADocument extends NSObject {
static alloc(): HKCDADocument; // inherited from NSObject
static new(): HKCDADocument; // inherited from NSObject
readonly authorName: string;
readonly custodianName: string;
readonly documentData: NSData;
readonly patientName: string;
readonly title: string;
}
declare class HKCDADocumentSample extends HKDocumentSample {
static CDADocumentSampleWithDataStartDateEndDateMetadataValidationError(documentData: NSData, startDate: Date, endDate: Date, metadata: NSDictionary<string, any>): HKCDADocumentSample;
static alloc(): HKCDADocumentSample; // inherited from NSObject
static new(): HKCDADocumentSample; // inherited from NSObject
readonly document: HKCDADocument;
}
declare class HKCategorySample extends HKSample {
static alloc(): HKCategorySample; // inherited from NSObject
static categorySampleWithTypeValueStartDateEndDate(type: HKCategoryType, value: number, startDate: Date, endDate: Date): HKCategorySample;
static categorySampleWithTypeValueStartDateEndDateDeviceMetadata(type: HKCategoryType, value: number, startDate: Date, endDate: Date, device: HKDevice, metadata: NSDictionary<string, any>): HKCategorySample;
static categorySampleWithTypeValueStartDateEndDateMetadata(type: HKCategoryType, value: number, startDate: Date, endDate: Date, metadata: NSDictionary<string, any>): HKCategorySample;
static new(): HKCategorySample; // inherited from NSObject
readonly categoryType: HKCategoryType;
readonly value: number;
}
declare class HKCategoryType extends HKSampleType {
static alloc(): HKCategoryType; // inherited from NSObject
static new(): HKCategoryType; // inherited from NSObject
}
declare var HKCategoryTypeIdentifierAppleStandHour: string;
declare var HKCategoryTypeIdentifierAudioExposureEvent: string;
declare var HKCategoryTypeIdentifierCervicalMucusQuality: string;
declare var HKCategoryTypeIdentifierHighHeartRateEvent: string;
declare var HKCategoryTypeIdentifierIntermenstrualBleeding: string;
declare var HKCategoryTypeIdentifierIrregularHeartRhythmEvent: string;
declare var HKCategoryTypeIdentifierLowHeartRateEvent: string;
declare var HKCategoryTypeIdentifierMenstrualFlow: string;
declare var HKCategoryTypeIdentifierMindfulSession: string;
declare var HKCategoryTypeIdentifierOvulationTestResult: string;
declare var HKCategoryTypeIdentifierSexualActivity: string;
declare var HKCategoryTypeIdentifierSleepAnalysis: string;
declare var HKCategoryTypeIdentifierToothbrushingEvent: string;
declare const enum HKCategoryValue {
NotApplicable = 0
}
declare const enum HKCategoryValueAppleStandHour {
Stood = 0,
Idle = 1
}
declare const enum HKCategoryValueAudioExposureEvent {
LoudEnvironment = 1
}
declare const enum HKCategoryValueCervicalMucusQuality {
Dry = 1,
Sticky = 2,
Creamy = 3,
Watery = 4,
EggWhite = 5
}
declare const enum HKCategoryValueMenstrualFlow {
Unspecified = 1,
Light = 2,
Medium = 3,
Heavy = 4,
None = 5
}
declare const enum HKCategoryValueOvulationTestResult {
Negative = 1,
LuteinizingHormoneSurge = 2,
Positive = 2,
Indeterminate = 3,
EstrogenSurge = 4
}
declare const enum HKCategoryValueSleepAnalysis {
InBed = 0,
Asleep = 1,
Awake = 2
}
declare class HKCharacteristicType extends HKObjectType {
static alloc(): HKCharacteristicType; // inherited from NSObject
static new(): HKCharacteristicType; // inherited from NSObject
}
declare var HKCharacteristicTypeIdentifierBiologicalSex: string;
declare var HKCharacteristicTypeIdentifierBloodType: string;
declare var HKCharacteristicTypeIdentifierDateOfBirth: string;
declare var HKCharacteristicTypeIdentifierFitzpatrickSkinType: string;
declare var HKCharacteristicTypeIdentifierWheelchairUse: string;
declare class HKClinicalRecord extends HKSample implements NSCopying, NSSecureCoding {
static alloc(): HKClinicalRecord; // inherited from NSObject
static new(): HKClinicalRecord; // inherited from NSObject
readonly FHIRResource: HKFHIRResource;
readonly clinicalType: HKClinicalType;
readonly displayName: string;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare class HKClinicalType extends HKSampleType {
static alloc(): HKClinicalType; // inherited from NSObject
static new(): HKClinicalType; // inherited from NSObject
}
declare var HKClinicalTypeIdentifierAllergyRecord: string;
declare var HKClinicalTypeIdentifierConditionRecord: string;
declare var HKClinicalTypeIdentifierImmunizationRecord: string;
declare var HKClinicalTypeIdentifierLabResultRecord: string;
declare var HKClinicalTypeIdentifierMedicationRecord: string;
declare var HKClinicalTypeIdentifierProcedureRecord: string;
declare var HKClinicalTypeIdentifierVitalSignRecord: string;
declare class HKCorrelation extends HKSample {
static alloc(): HKCorrelation; // inherited from NSObject
static correlationWithTypeStartDateEndDateObjects(correlationType: HKCorrelationType, startDate: Date, endDate: Date, objects: NSSet<HKSample>): HKCorrelation;
static correlationWithTypeStartDateEndDateObjectsDeviceMetadata(correlationType: HKCorrelationType, startDate: Date, endDate: Date, objects: NSSet<HKSample>, device: HKDevice, metadata: NSDictionary<string, any>): HKCorrelation;
static correlationWithTypeStartDateEndDateObjectsMetadata(correlationType: HKCorrelationType, startDate: Date, endDate: Date, objects: NSSet<HKSample>, metadata: NSDictionary<string, any>): HKCorrelation;
static new(): HKCorrelation; // inherited from NSObject
readonly correlationType: HKCorrelationType;
readonly objects: NSSet<HKSample>;
objectsForType(objectType: HKObjectType): NSSet<HKSample>;
}
declare class HKCorrelationQuery extends HKQuery {
static alloc(): HKCorrelationQuery; // inherited from NSObject
static new(): HKCorrelationQuery; // inherited from NSObject
readonly correlationType: HKCorrelationType;
readonly samplePredicates: NSDictionary<HKSampleType, NSPredicate>;
constructor(o: { type: HKCorrelationType; predicate: NSPredicate; samplePredicates: NSDictionary<HKSampleType, NSPredicate>; completion: (p1: HKCorrelationQuery, p2: NSArray<HKCorrelation>, p3: NSError) => void; });
initWithTypePredicateSamplePredicatesCompletion(correlationType: HKCorrelationType, predicate: NSPredicate, samplePredicates: NSDictionary<HKSampleType, NSPredicate>, completion: (p1: HKCorrelationQuery, p2: NSArray<HKCorrelation>, p3: NSError) => void): this;
}
declare class HKCorrelationType extends HKSampleType {
static alloc(): HKCorrelationType; // inherited from NSObject
static new(): HKCorrelationType; // inherited from NSObject
}
declare var HKCorrelationTypeIdentifierBloodPressure: string;
declare var HKCorrelationTypeIdentifierFood: string;
declare class HKCumulativeQuantitySample extends HKQuantitySample {
static alloc(): HKCumulativeQuantitySample; // inherited from NSObject
static new(): HKCumulativeQuantitySample; // inherited from NSObject
static quantitySampleWithTypeQuantityStartDateEndDate(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date): HKCumulativeQuantitySample; // inherited from HKQuantitySample
static quantitySampleWithTypeQuantityStartDateEndDateDeviceMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, device: HKDevice, metadata: NSDictionary<string, any>): HKCumulativeQuantitySample; // inherited from HKQuantitySample
static quantitySampleWithTypeQuantityStartDateEndDateMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, metadata: NSDictionary<string, any>): HKCumulativeQuantitySample; // inherited from HKQuantitySample
readonly sumQuantity: HKQuantity;
}
declare class HKCumulativeQuantitySeriesSample extends HKCumulativeQuantitySample {
static alloc(): HKCumulativeQuantitySeriesSample; // inherited from NSObject
static new(): HKCumulativeQuantitySeriesSample; // inherited from NSObject
static quantitySampleWithTypeQuantityStartDateEndDate(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date): HKCumulativeQuantitySeriesSample; // inherited from HKQuantitySample
static quantitySampleWithTypeQuantityStartDateEndDateDeviceMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, device: HKDevice, metadata: NSDictionary<string, any>): HKCumulativeQuantitySeriesSample; // inherited from HKQuantitySample
static quantitySampleWithTypeQuantityStartDateEndDateMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, metadata: NSDictionary<string, any>): HKCumulativeQuantitySeriesSample; // inherited from HKQuantitySample
readonly sum: HKQuantity;
}
declare var HKDataTypeIdentifierHeartbeatSeries: string;
declare class HKDeletedObject extends NSObject implements NSSecureCoding {
static alloc(): HKDeletedObject; // inherited from NSObject
static new(): HKDeletedObject; // inherited from NSObject
readonly UUID: NSUUID;
readonly metadata: NSDictionary<string, any>;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare var HKDetailedCDAValidationErrorKey: string;
declare class HKDevice extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): HKDevice; // inherited from NSObject
static localDevice(): HKDevice;
static new(): HKDevice; // inherited from NSObject
readonly UDIDeviceIdentifier: string;
readonly firmwareVersion: string;
readonly hardwareVersion: string;
readonly localIdentifier: string;
readonly manufacturer: string;
readonly model: string;
readonly name: string;
readonly softwareVersion: string;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
constructor(o: { name: string; manufacturer: string; model: string; hardwareVersion: string; firmwareVersion: string; softwareVersion: string; localIdentifier: string; UDIDeviceIdentifier: string; });
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
initWithNameManufacturerModelHardwareVersionFirmwareVersionSoftwareVersionLocalIdentifierUDIDeviceIdentifier(name: string, manufacturer: string, model: string, hardwareVersion: string, firmwareVersion: string, softwareVersion: string, localIdentifier: string, UDIDeviceIdentifier: string): this;
}
declare var HKDevicePropertyKeyFirmwareVersion: string;
declare var HKDevicePropertyKeyHardwareVersion: string;
declare var HKDevicePropertyKeyLocalIdentifier: string;
declare var HKDevicePropertyKeyManufacturer: string;
declare var HKDevicePropertyKeyModel: string;
declare var HKDevicePropertyKeyName: string;
declare var HKDevicePropertyKeySoftwareVersion: string;
declare var HKDevicePropertyKeyUDIDeviceIdentifier: string;
declare class HKDiscreteQuantitySample extends HKQuantitySample {
static alloc(): HKDiscreteQuantitySample; // inherited from NSObject
static new(): HKDiscreteQuantitySample; // inherited from NSObject
static quantitySampleWithTypeQuantityStartDateEndDate(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date): HKDiscreteQuantitySample; // inherited from HKQuantitySample
static quantitySampleWithTypeQuantityStartDateEndDateDeviceMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, device: HKDevice, metadata: NSDictionary<string, any>): HKDiscreteQuantitySample; // inherited from HKQuantitySample
static quantitySampleWithTypeQuantityStartDateEndDateMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, metadata: NSDictionary<string, any>): HKDiscreteQuantitySample; // inherited from HKQuantitySample
readonly averageQuantity: HKQuantity;
readonly maximumQuantity: HKQuantity;
readonly minimumQuantity: HKQuantity;
readonly mostRecentQuantity: HKQuantity;
readonly mostRecentQuantityDateInterval: NSDateInterval;
}
declare class HKDocumentQuery extends HKQuery {
static alloc(): HKDocumentQuery; // inherited from NSObject
static new(): HKDocumentQuery; // inherited from NSObject
readonly includeDocumentData: boolean;
readonly limit: number;
readonly sortDescriptors: NSArray<NSSortDescriptor>;
constructor(o: { documentType: HKDocumentType; predicate: NSPredicate; limit: number; sortDescriptors: NSArray<NSSortDescriptor> | NSSortDescriptor[]; includeDocumentData: boolean; resultsHandler: (p1: HKDocumentQuery, p2: NSArray<HKDocumentSample>, p3: boolean, p4: NSError) => void; });
initWithDocumentTypePredicateLimitSortDescriptorsIncludeDocumentDataResultsHandler(documentType: HKDocumentType, predicate: NSPredicate, limit: number, sortDescriptors: NSArray<NSSortDescriptor> | NSSortDescriptor[], includeDocumentData: boolean, resultsHandler: (p1: HKDocumentQuery, p2: NSArray<HKDocumentSample>, p3: boolean, p4: NSError) => void): this;
}
declare class HKDocumentSample extends HKSample {
static alloc(): HKDocumentSample; // inherited from NSObject
static new(): HKDocumentSample; // inherited from NSObject
readonly documentType: HKDocumentType;
}
declare class HKDocumentType extends HKSampleType {
static alloc(): HKDocumentType; // inherited from NSObject
static new(): HKDocumentType; // inherited from NSObject
}
declare var HKDocumentTypeIdentifierCDA: string;
declare const enum HKErrorCode {
NoError = 0,
ErrorHealthDataUnavailable = 1,
ErrorHealthDataRestricted = 2,
ErrorInvalidArgument = 3,
ErrorAuthorizationDenied = 4,
ErrorAuthorizationNotDetermined = 5,
ErrorDatabaseInaccessible = 6,
ErrorUserCanceled = 7,
ErrorAnotherWorkoutSessionStarted = 8,
ErrorUserExitedWorkoutSession = 9,
ErrorRequiredAuthorizationDenied = 10
}
declare var HKErrorDomain: string;
declare class HKFHIRResource extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): HKFHIRResource; // inherited from NSObject
static new(): HKFHIRResource; // inherited from NSObject
readonly data: NSData;
readonly identifier: string;
readonly resourceType: string;
readonly sourceURL: NSURL;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare var HKFHIRResourceTypeAllergyIntolerance: string;
declare var HKFHIRResourceTypeCondition: string;
declare var HKFHIRResourceTypeImmunization: string;
declare var HKFHIRResourceTypeMedicationDispense: string;
declare var HKFHIRResourceTypeMedicationOrder: string;
declare var HKFHIRResourceTypeMedicationStatement: string;
declare var HKFHIRResourceTypeObservation: string;
declare var HKFHIRResourceTypeProcedure: string;
declare const enum HKFitzpatrickSkinType {
NotSet = 0,
I = 1,
II = 2,
III = 3,
IV = 4,
V = 5,
VI = 6
}
declare class HKFitzpatrickSkinTypeObject extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): HKFitzpatrickSkinTypeObject; // inherited from NSObject
static new(): HKFitzpatrickSkinTypeObject; // inherited from NSObject
readonly skinType: HKFitzpatrickSkinType;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare class HKHealthStore extends NSObject {
static alloc(): HKHealthStore; // inherited from NSObject
static isHealthDataAvailable(): boolean;
static new(): HKHealthStore; // inherited from NSObject
addSamplesToWorkoutCompletion(samples: NSArray<HKSample> | HKSample[], workout: HKWorkout, completion: (p1: boolean, p2: NSError) => void): void;
authorizationStatusForType(type: HKObjectType): HKAuthorizationStatus;
biologicalSexWithError(): HKBiologicalSexObject;
bloodTypeWithError(): HKBloodTypeObject;
dateOfBirthComponentsWithError(): NSDateComponents;
dateOfBirthWithError(): Date;
deleteObjectWithCompletion(object: HKObject, completion: (p1: boolean, p2: NSError) => void): void;
deleteObjectsOfTypePredicateWithCompletion(objectType: HKObjectType, predicate: NSPredicate, completion: (p1: boolean, p2: number, p3: NSError) => void): void;
deleteObjectsWithCompletion(objects: NSArray<HKObject> | HKObject[], completion: (p1: boolean, p2: NSError) => void): void;
disableAllBackgroundDeliveryWithCompletion(completion: (p1: boolean, p2: NSError) => void): void;
disableBackgroundDeliveryForTypeWithCompletion(type: HKObjectType, completion: (p1: boolean, p2: NSError) => void): void;
earliestPermittedSampleDate(): Date;
enableBackgroundDeliveryForTypeFrequencyWithCompletion(type: HKObjectType, frequency: HKUpdateFrequency, completion: (p1: boolean, p2: NSError) => void): void;
executeQuery(query: HKQuery): void;
fitzpatrickSkinTypeWithError(): HKFitzpatrickSkinTypeObject;
getRequestStatusForAuthorizationToShareTypesReadTypesCompletion(typesToShare: NSSet<HKSampleType>, typesToRead: NSSet<HKObjectType>, completion: (p1: HKAuthorizationRequestStatus, p2: NSError) => void): void;
handleAuthorizationForExtensionWithCompletion(completion: (p1: boolean, p2: NSError) => void): void;
preferredUnitsForQuantityTypesCompletion(quantityTypes: NSSet<HKQuantityType>, completion: (p1: NSDictionary<HKQuantityType, HKUnit>, p2: NSError) => void): void;
requestAuthorizationToShareTypesReadTypesCompletion(typesToShare: NSSet<HKSampleType>, typesToRead: NSSet<HKObjectType>, completion: (p1: boolean, p2: NSError) => void): void;
saveObjectWithCompletion(object: HKObject, completion: (p1: boolean, p2: NSError) => void): void;
saveObjectsWithCompletion(objects: NSArray<HKObject> | HKObject[], completion: (p1: boolean, p2: NSError) => void): void;
splitTotalEnergyStartDateEndDateResultsHandler(totalEnergy: HKQuantity, startDate: Date, endDate: Date, resultsHandler: (p1: HKQuantity, p2: HKQuantity, p3: NSError) => void): void;
startWatchAppWithWorkoutConfigurationCompletion(workoutConfiguration: HKWorkoutConfiguration, completion: (p1: boolean, p2: NSError) => void): void;
stopQuery(query: HKQuery): void;
supportsHealthRecords(): boolean;
wheelchairUseWithError(): HKWheelchairUseObject;
}
declare const enum HKHeartRateMotionContext {
NotSet = 0,
Sedentary = 1,
Active = 2
}
declare const enum HKHeartRateSensorLocation {
Other = 0,
Chest = 1,
Wrist = 2,
Finger = 3,
Hand = 4,
EarLobe = 5,
Foot = 6
}
declare class HKHeartbeatSeriesBuilder extends HKSeriesBuilder {
static alloc(): HKHeartbeatSeriesBuilder; // inherited from NSObject
static new(): HKHeartbeatSeriesBuilder; // inherited from NSObject
static readonly maximumCount: number;
constructor(o: { healthStore: HKHealthStore; device: HKDevice; startDate: Date; });
addHeartbeatWithTimeIntervalSinceSeriesStartDatePrecededByGapCompletion(timeInterval: number, precededByGap: boolean, completion: (p1: boolean, p2: NSError) => void): void;
addMetadataCompletion(metadata: NSDictionary<string, any>, completion: (p1: boolean, p2: NSError) => void): void;
finishSeriesWithCompletion(completion: (p1: HKHeartbeatSeriesSample, p2: NSError) => void): void;
initWithHealthStoreDeviceStartDate(healthStore: HKHealthStore, device: HKDevice, startDate: Date): this;
}
declare class HKHeartbeatSeriesQuery extends HKQuery {
static alloc(): HKHeartbeatSeriesQuery; // inherited from NSObject
static new(): HKHeartbeatSeriesQuery; // inherited from NSObject
constructor(o: { heartbeatSeries: HKHeartbeatSeriesSample; dataHandler: (p1: HKHeartbeatSeriesQuery, p2: number, p3: boolean, p4: boolean, p5: NSError) => void; });
initWithHeartbeatSeriesDataHandler(heartbeatSeries: HKHeartbeatSeriesSample, dataHandler: (p1: HKHeartbeatSeriesQuery, p2: number, p3: boolean, p4: boolean, p5: NSError) => void): this;
}
declare class HKHeartbeatSeriesSample extends HKSeriesSample {
static alloc(): HKHeartbeatSeriesSample; // inherited from NSObject
static new(): HKHeartbeatSeriesSample; // inherited from NSObject
}
declare const enum HKInsulinDeliveryReason {
Basal = 1,
Bolus = 2
}
declare var HKMetadataKeyAlpineSlopeGrade: string;
declare var HKMetadataKeyAudioExposureLevel: string;
declare var HKMetadataKeyAverageMETs: string;
declare var HKMetadataKeyAverageSpeed: string;
declare var HKMetadataKeyBloodGlucoseMealTime: string;
declare var HKMetadataKeyBodyTemperatureSensorLocation: string;
declare var HKMetadataKeyCoachedWorkout: string;
declare var HKMetadataKeyCrossTrainerDistance: string;
declare var HKMetadataKeyDeviceManufacturerName: string;
declare var HKMetadataKeyDeviceName: string;
declare var HKMetadataKeyDeviceSerialNumber: string;
declare var HKMetadataKeyDigitalSignature: string;
declare var HKMetadataKeyElevationAscended: string;
declare var HKMetadataKeyElevationDescended: string;
declare var HKMetadataKeyExternalUUID: string;
declare var HKMetadataKeyFitnessMachineDuration: string;
declare var HKMetadataKeyFoodType: string;
declare var HKMetadataKeyGroupFitness: string;
declare var HKMetadataKeyHeartRateEventThreshold: string;
declare var HKMetadataKeyHeartRateMotionContext: string;
declare var HKMetadataKeyHeartRateSensorLocation: string;
declare var HKMetadataKeyIndoorBikeDistance: string;
declare var HKMetadataKeyIndoorWorkout: string;
declare var HKMetadataKeyInsulinDeliveryReason: string;
declare var HKMetadataKeyLapLength: string;
declare var HKMetadataKeyMaximumSpeed: string;
declare var HKMetadataKeyMenstrualCycleStart: string;
declare var HKMetadataKeyReferenceRangeLowerLimit: string;
declare var HKMetadataKeyReferenceRangeUpperLimit: string;
declare var HKMetadataKeySexualActivityProtectionUsed: string;
declare var HKMetadataKeySwimmingLocationType: string;
declare var HKMetadataKeySwimmingStrokeStyle: string;
declare var HKMetadataKeySyncIdentifier: string;
declare var HKMetadataKeySyncVersion: string;
declare var HKMetadataKeyTimeZone: string;
declare var HKMetadataKeyUDIDeviceIdentifier: string;
declare var HKMetadataKeyUDIProductionIdentifier: string;
declare var HKMetadataKeyVO2MaxTestType: string;
declare var HKMetadataKeyWasTakenInLab: string;
declare var HKMetadataKeyWasUserEntered: string;
declare var HKMetadataKeyWeatherCondition: string;
declare var HKMetadataKeyWeatherHumidity: string;
declare var HKMetadataKeyWeatherTemperature: string;
declare var HKMetadataKeyWorkoutBrandName: string;
declare const enum HKMetricPrefix {
None = 0,
Femto = 13,
Pico = 1,
Nano = 2,
Micro = 3,
Milli = 4,
Centi = 5,
Deci = 6,
Deca = 7,
Hecto = 8,
Kilo = 9,
Mega = 10,
Giga = 11,
Tera = 12
}
declare class HKObject extends NSObject implements NSSecureCoding {
static alloc(): HKObject; // inherited from NSObject
static new(): HKObject; // inherited from NSObject
readonly UUID: NSUUID;
readonly device: HKDevice;
readonly metadata: NSDictionary<string, any>;
readonly source: HKSource;
readonly sourceRevision: HKSourceRevision;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare var HKObjectQueryNoLimit: number;
declare class HKObjectType extends NSObject implements NSCopying, NSSecureCoding {
static activitySummaryType(): HKActivitySummaryType;
static alloc(): HKObjectType; // inherited from NSObject
static audiogramSampleType(): HKAudiogramSampleType;
static categoryTypeForIdentifier(identifier: string): HKCategoryType;
static characteristicTypeForIdentifier(identifier: string): HKCharacteristicType;
static clinicalTypeForIdentifier(identifier: string): HKClinicalType;
static correlationTypeForIdentifier(identifier: string): HKCorrelationType;
static documentTypeForIdentifier(identifier: string): HKDocumentType;
static new(): HKObjectType; // inherited from NSObject
static quantityTypeForIdentifier(identifier: string): HKQuantityType;
static seriesTypeForIdentifier(identifier: string): HKSeriesType;
static workoutType(): HKWorkoutType;
readonly identifier: string;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare class HKObserverQuery extends HKQuery {
static alloc(): HKObserverQuery; // inherited from NSObject
static new(): HKObserverQuery; // inherited from NSObject
constructor(o: { sampleType: HKSampleType; predicate: NSPredicate; updateHandler: (p1: HKObserverQuery, p2: () => void, p3: NSError) => void; });
initWithSampleTypePredicateUpdateHandler(sampleType: HKSampleType, predicate: NSPredicate, updateHandler: (p1: HKObserverQuery, p2: () => void, p3: NSError) => void): this;
}
declare var HKPredicateKeyPathAverage: string;
declare var HKPredicateKeyPathCDAAuthorName: string;
declare var HKPredicateKeyPathCDACustodianName: string;
declare var HKPredicateKeyPathCDAPatientName: string;
declare var HKPredicateKeyPathCDATitle: string;
declare var HKPredicateKeyPathCategoryValue: string;
declare var HKPredicateKeyPathClinicalRecordFHIRResourceIdentifier: string;
declare var HKPredicateKeyPathClinicalRecordFHIRResourceType: string;
declare var HKPredicateKeyPathCorrelation: string;
declare var HKPredicateKeyPathCount: string;
declare var HKPredicateKeyPathDateComponents: string;
declare var HKPredicateKeyPathDevice: string;
declare var HKPredicateKeyPathEndDate: string;
declare var HKPredicateKeyPathMax: string;
declare var HKPredicateKeyPathMetadata: string;
declare var HKPredicateKeyPathMin: string;
declare var HKPredicateKeyPathMostRecent: string;
declare var HKPredicateKeyPathMostRecentDuration: string;
declare var HKPredicateKeyPathMostRecentEndDate: string;
declare var HKPredicateKeyPathMostRecentStartDate: string;
declare var HKPredicateKeyPathQuantity: string;
declare var HKPredicateKeyPathSource: string;
declare var HKPredicateKeyPathSourceRevision: string;
declare var HKPredicateKeyPathStartDate: string;
declare var HKPredicateKeyPathSum: string;
declare var HKPredicateKeyPathUUID: string;
declare var HKPredicateKeyPathWorkout: string;
declare var HKPredicateKeyPathWorkoutDuration: string;
declare var HKPredicateKeyPathWorkoutTotalDistance: string;
declare var HKPredicateKeyPathWorkoutTotalEnergyBurned: string;
declare var HKPredicateKeyPathWorkoutTotalFlightsClimbed: string;
declare var HKPredicateKeyPathWorkoutTotalSwimmingStrokeCount: string;
declare var HKPredicateKeyPathWorkoutType: string;
declare class HKQuantity extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): HKQuantity; // inherited from NSObject
static new(): HKQuantity; // inherited from NSObject
static quantityWithUnitDoubleValue(unit: HKUnit, value: number): HKQuantity;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
compare(quantity: HKQuantity): NSComparisonResult;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
doubleValueForUnit(unit: HKUnit): number;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
isCompatibleWithUnit(unit: HKUnit): boolean;
}
declare const enum HKQuantityAggregationStyle {
Cumulative = 0,
DiscreteArithmetic = 1,
Discrete = 1,
DiscreteTemporallyWeighted = 2,
DiscreteEquivalentContinuousLevel = 3
}
declare class HKQuantitySample extends HKSample {
static alloc(): HKQuantitySample; // inherited from NSObject
static new(): HKQuantitySample; // inherited from NSObject
static quantitySampleWithTypeQuantityStartDateEndDate(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date): HKQuantitySample;
static quantitySampleWithTypeQuantityStartDateEndDateDeviceMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, device: HKDevice, metadata: NSDictionary<string, any>): HKQuantitySample;
static quantitySampleWithTypeQuantityStartDateEndDateMetadata(quantityType: HKQuantityType, quantity: HKQuantity, startDate: Date, endDate: Date, metadata: NSDictionary<string, any>): HKQuantitySample;
readonly count: number;
readonly quantity: HKQuantity;
readonly quantityType: HKQuantityType;
}
declare class HKQuantitySeriesSampleBuilder extends NSObject {
static alloc(): HKQuantitySeriesSampleBuilder; // inherited from NSObject
static new(): HKQuantitySeriesSampleBuilder; // inherited from NSObject
readonly device: HKDevice;
readonly quantityType: HKQuantityType;
readonly startDate: Date;
constructor(o: { healthStore: HKHealthStore; quantityType: HKQuantityType; startDate: Date; device: HKDevice; });
discard(): void;
finishSeriesWithMetadataCompletion(metadata: NSDictionary<string, any>, completion: (p1: NSArray<HKQuantitySample>, p2: NSError) => void): void;
finishSeriesWithMetadataEndDateCompletion(metadata: NSDictionary<string, any>, endDate: Date, completion: (p1: NSArray<HKQuantitySample>, p2: NSError) => void): void;
initWithHealthStoreQuantityTypeStartDateDevice(healthStore: HKHealthStore, quantityType: HKQuantityType, startDate: Date, device: HKDevice): this;
insertQuantityDateError(quantity: HKQuantity, date: Date): boolean;
insertQuantityDateIntervalError(quantity: HKQuantity, dateInterval: NSDateInterval): boolean;
}
declare class HKQuantitySeriesSampleQuery extends HKQuery {
static alloc(): HKQuantitySeriesSampleQuery; // inherited from NSObject
static new(): HKQuantitySeriesSampleQuery; // inherited from NSObject
includeSample: boolean;
orderByQuantitySampleStartDate: boolean;
constructor(o: { quantityType: HKQuantityType; predicate: NSPredicate; quantityHandler: (p1: HKQuantitySeriesSampleQuery, p2: HKQuantity, p3: NSDateInterval, p4: HKQuantitySample, p5: boolean, p6: NSError) => void; });
constructor(o: { sample: HKQuantitySample; quantityHandler: (p1: HKQuantitySeriesSampleQuery, p2: HKQuantity, p3: Date, p4: boolean, p5: NSError) => void; });
initWithQuantityTypePredicateQuantityHandler(quantityType: HKQuantityType, predicate: NSPredicate, quantityHandler: (p1: HKQuantitySeriesSampleQuery, p2: HKQuantity, p3: NSDateInterval, p4: HKQuantitySample, p5: boolean, p6: NSError) => void): this;
initWithSampleQuantityHandler(quantitySample: HKQuantitySample, quantityHandler: (p1: HKQuantitySeriesSampleQuery, p2: HKQuantity, p3: Date, p4: boolean, p5: NSError) => void): this;
}
declare class HKQuantityType extends HKSampleType {
static alloc(): HKQuantityType; // inherited from NSObject
static new(): HKQuantityType; // inherited from NSObject
readonly aggregationStyle: HKQuantityAggregationStyle;
isCompatibleWithUnit(unit: HKUnit): boolean;
}
declare var HKQuantityTypeIdentifierActiveEnergyBurned: string;
declare var HKQuantityTypeIdentifierAppleExerciseTime: string;
declare var HKQuantityTypeIdentifierAppleStandTime: string;
declare var HKQuantityTypeIdentifierBasalBodyTemperature: string;
declare var HKQuantityTypeIdentifierBasalEnergyBurned: string;
declare var HKQuantityTypeIdentifierBloodAlcoholContent: string;
declare var HKQuantityTypeIdentifierBloodGlucose: string;
declare var HKQuantityTypeIdentifierBloodPressureDiastolic: string;
declare var HKQuantityTypeIdentifierBloodPressureSystolic: string;
declare var HKQuantityTypeIdentifierBodyFatPercentage: string;
declare var HKQuantityTypeIdentifierBodyMass: string;
declare var HKQuantityTypeIdentifierBodyMassIndex: string;
declare var HKQuantityTypeIdentifierBodyTemperature: string;
declare var HKQuantityTypeIdentifierDietaryBiotin: string;
declare var HKQuantityTypeIdentifierDietaryCaffeine: string;
declare var HKQuantityTypeIdentifierDietaryCalcium: string;
declare var HKQuantityTypeIdentifierDietaryCarbohydrates: string;
declare var HKQuantityTypeIdentifierDietaryChloride: string;
declare var HKQuantityTypeIdentifierDietaryCholesterol: string;
declare var HKQuantityTypeIdentifierDietaryChromium: string;
declare var HKQuantityTypeIdentifierDietaryCopper: string;
declare var HKQuantityTypeIdentifierDietaryEnergyConsumed: string;
declare var HKQuantityTypeIdentifierDietaryFatMonounsaturated: string;
declare var HKQuantityTypeIdentifierDietaryFatPolyunsaturated: string;
declare var HKQuantityTypeIdentifierDietaryFatSaturated: string;
declare var HKQuantityTypeIdentifierDietaryFatTotal: string;
declare var HKQuantityTypeIdentifierDietaryFiber: string;
declare var HKQuantityTypeIdentifierDietaryFolate: string;
declare var HKQuantityTypeIdentifierDietaryIodine: string;
declare var HKQuantityTypeIdentifierDietaryIron: string;
declare var HKQuantityTypeIdentifierDietaryMagnesium: string;
declare var HKQuantityTypeIdentifierDietaryManganese: string;
declare var HKQuantityTypeIdentifierDietaryMolybdenum: string;
declare var HKQuantityTypeIdentifierDietaryNiacin: string;
declare var HKQuantityTypeIdentifierDietaryPantothenicAcid: string;
declare var HKQuantityTypeIdentifierDietaryPhosphorus: string;
declare var HKQuantityTypeIdentifierDietaryPotassium: string;
declare var HKQuantityTypeIdentifierDietaryProtein: string;
declare var HKQuantityTypeIdentifierDietaryRiboflavin: string;
declare var HKQuantityTypeIdentifierDietarySelenium: string;
declare var HKQuantityTypeIdentifierDietarySodium: string;
declare var HKQuantityTypeIdentifierDietarySugar: string;
declare var HKQuantityTypeIdentifierDietaryThiamin: string;
declare var HKQuantityTypeIdentifierDietaryVitaminA: string;
declare var HKQuantityTypeIdentifierDietaryVitaminB12: string;
declare var HKQuantityTypeIdentifierDietaryVitaminB6: string;
declare var HKQuantityTypeIdentifierDietaryVitaminC: string;
declare var HKQuantityTypeIdentifierDietaryVitaminD: string;
declare var HKQuantityTypeIdentifierDietaryVitaminE: string;
declare var HKQuantityTypeIdentifierDietaryVitaminK: string;
declare var HKQuantityTypeIdentifierDietaryWater: string;
declare var HKQuantityTypeIdentifierDietaryZinc: string;
declare var HKQuantityTypeIdentifierDistanceCycling: string;
declare var HKQuantityTypeIdentifierDistanceDownhillSnowSports: string;
declare var HKQuantityTypeIdentifierDistanceSwimming: string;
declare var HKQuantityTypeIdentifierDistanceWalkingRunning: string;
declare var HKQuantityTypeIdentifierDistanceWheelchair: string;
declare var HKQuantityTypeIdentifierElectrodermalActivity: string;
declare var HKQuantityTypeIdentifierEnvironmentalAudioExposure: string;
declare var HKQuantityTypeIdentifierFlightsClimbed: string;
declare var HKQuantityTypeIdentifierForcedExpiratoryVolume1: string;
declare var HKQuantityTypeIdentifierForcedVitalCapacity: string;
declare var HKQuantityTypeIdentifierHeadphoneAudioExposure: string;
declare var HKQuantityTypeIdentifierHeartRate: string;
declare var HKQuantityTypeIdentifierHeartRateVariabilitySDNN: string;
declare var HKQuantityTypeIdentifierHeight: string;
declare var HKQuantityTypeIdentifierInhalerUsage: string;
declare var HKQuantityTypeIdentifierInsulinDelivery: string;
declare var HKQuantityTypeIdentifierLeanBodyMass: string;
declare var HKQuantityTypeIdentifierNikeFuel: string;
declare var HKQuantityTypeIdentifierNumberOfTimesFallen: string;
declare var HKQuantityTypeIdentifierOxygenSaturation: string;
declare var HKQuantityTypeIdentifierPeakExpiratoryFlowRate: string;
declare var HKQuantityTypeIdentifierPeripheralPerfusionIndex: string;
declare var HKQuantityTypeIdentifierPushCount: string;
declare var HKQuantityTypeIdentifierRespiratoryRate: string;
declare var HKQuantityTypeIdentifierRestingHeartRate: string;
declare var HKQuantityTypeIdentifierStepCount: string;
declare var HKQuantityTypeIdentifierSwimmingStrokeCount: string;
declare var HKQuantityTypeIdentifierUVExposure: string;
declare var HKQuantityTypeIdentifierVO2Max: string;
declare var HKQuantityTypeIdentifierWaistCircumference: string;
declare var HKQuantityTypeIdentifierWalkingHeartRateAverage: string;
declare class HKQuery extends NSObject {
static alloc(): HKQuery; // inherited from NSObject
static new(): HKQuery; // inherited from NSObject
static predicateForActivitySummariesBetweenStartDateComponentsEndDateComponents(startDateComponents: NSDateComponents, endDateComponents: NSDateComponents): NSPredicate;
static predicateForActivitySummaryWithDateComponents(dateComponents: NSDateComponents): NSPredicate;
static predicateForCategorySamplesWithOperatorTypeValue(operatorType: NSPredicateOperatorType, value: number): NSPredicate;
static predicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier(source: HKSource, resourceType: string, identifier: string): NSPredicate;
static predicateForClinicalRecordsWithFHIRResourceType(resourceType: string): NSPredicate;
static predicateForObjectWithUUID(UUID: NSUUID): NSPredicate;
static predicateForObjectsFromDevices(devices: NSSet<HKDevice>): NSPredicate;
static predicateForObjectsFromSource(source: HKSource): NSPredicate;
static predicateForObjectsFromSourceRevisions(sourceRevisions: NSSet<HKSourceRevision>): NSPredicate;
static predicateForObjectsFromSources(sources: NSSet<HKSource>): NSPredicate;
static predicateForObjectsFromWorkout(workout: HKWorkout): NSPredicate;
static predicateForObjectsWithDevicePropertyAllowedValues(key: string, allowedValues: NSSet<string>): NSPredicate;
static predicateForObjectsWithMetadataKey(key: string): NSPredicate;
static predicateForObjectsWithMetadataKeyAllowedValues(key: string, allowedValues: NSArray<any> | any[]): NSPredicate;
static predicateForObjectsWithMetadataKeyOperatorTypeValue(key: string, operatorType: NSPredicateOperatorType, value: any): NSPredicate;
static predicateForObjectsWithNoCorrelation(): NSPredicate;
static predicateForObjectsWithUUIDs(UUIDs: NSSet<NSUUID>): NSPredicate;
static predicateForQuantitySamplesWithOperatorTypeQuantity(operatorType: NSPredicateOperatorType, quantity: HKQuantity): NSPredicate;
static predicateForSamplesWithStartDateEndDateOptions(startDate: Date, endDate: Date, options: HKQueryOptions): NSPredicate;
static predicateForWorkoutsWithOperatorTypeDuration(operatorType: NSPredicateOperatorType, duration: number): NSPredicate;
static predicateForWorkoutsWithOperatorTypeTotalDistance(operatorType: NSPredicateOperatorType, totalDistance: HKQuantity): NSPredicate;
static predicateForWorkoutsWithOperatorTypeTotalEnergyBurned(operatorType: NSPredicateOperatorType, totalEnergyBurned: HKQuantity): NSPredicate;
static predicateForWorkoutsWithOperatorTypeTotalFlightsClimbed(operatorType: NSPredicateOperatorType, totalFlightsClimbed: HKQuantity): NSPredicate;
static predicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount(operatorType: NSPredicateOperatorType, totalSwimmingStrokeCount: HKQuantity): NSPredicate;
static predicateForWorkoutsWithWorkoutActivityType(workoutActivityType: HKWorkoutActivityType): NSPredicate;
readonly objectType: HKObjectType;
readonly predicate: NSPredicate;
readonly sampleType: HKSampleType;
}
declare class HKQueryAnchor extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): HKQueryAnchor; // inherited from NSObject
static anchorFromValue(value: number): HKQueryAnchor;
static new(): HKQueryAnchor; // inherited from NSObject
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare const enum HKQueryOptions {
None = 0,
StrictStartDate = 1,
StrictEndDate = 2
}
declare class HKSample extends HKObject {
static alloc(): HKSample; // inherited from NSObject
static new(): HKSample; // inherited from NSObject
readonly endDate: Date;
readonly sampleType: HKSampleType;
readonly startDate: Date;
}
declare class HKSampleQuery extends HKQuery {
static alloc(): HKSampleQuery; // inherited from NSObject
static new(): HKSampleQuery; // inherited from NSObject
readonly limit: number;
readonly sortDescriptors: NSArray<NSSortDescriptor>;
constructor(o: { sampleType: HKSampleType; predicate: NSPredicate; limit: number; sortDescriptors: NSArray<NSSortDescriptor> | NSSortDescriptor[]; resultsHandler: (p1: HKSampleQuery, p2: NSArray<HKSample>, p3: NSError) => void; });
initWithSampleTypePredicateLimitSortDescriptorsResultsHandler(sampleType: HKSampleType, predicate: NSPredicate, limit: number, sortDescriptors: NSArray<NSSortDescriptor> | NSSortDescriptor[], resultsHandler: (p1: HKSampleQuery, p2: NSArray<HKSample>, p3: NSError) => void): this;
}
declare var HKSampleSortIdentifierEndDate: string;
declare var HKSampleSortIdentifierStartDate: string;
declare class HKSampleType extends HKObjectType {
static alloc(): HKSampleType; // inherited from NSObject
static new(): HKSampleType; // inherited from NSObject
readonly isMaximumDurationRestricted: boolean;
readonly isMinimumDurationRestricted: boolean;
readonly maximumAllowedDuration: number;
readonly minimumAllowedDuration: number;
}
declare class HKSeriesBuilder extends NSObject {
static alloc(): HKSeriesBuilder; // inherited from NSObject
static new(): HKSeriesBuilder; // inherited from NSObject
discard(): void;
}
declare class HKSeriesSample extends HKSample {
static alloc(): HKSeriesSample; // inherited from NSObject
static new(): HKSeriesSample; // inherited from NSObject
readonly count: number;
}
declare class HKSeriesType extends HKSampleType {
static alloc(): HKSeriesType; // inherited from NSObject
static heartbeatSeriesType(): HKSeriesType;
static new(): HKSeriesType; // inherited from NSObject
static workoutRouteType(): HKSeriesType;
}
declare class HKSource extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): HKSource; // inherited from NSObject
static defaultSource(): HKSource;
static new(): HKSource; // inherited from NSObject
readonly bundleIdentifier: string;
readonly name: string;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare class HKSourceQuery extends HKQuery {
static alloc(): HKSourceQuery; // inherited from NSObject
static new(): HKSourceQuery; // inherited from NSObject
constructor(o: { sampleType: HKSampleType; samplePredicate: NSPredicate; completionHandler: (p1: HKSourceQuery, p2: NSSet<HKSource>, p3: NSError) => void; });
initWithSampleTypeSamplePredicateCompletionHandler(sampleType: HKSampleType, objectPredicate: NSPredicate, completionHandler: (p1: HKSourceQuery, p2: NSSet<HKSource>, p3: NSError) => void): this;
}
declare class HKSourceRevision extends NSObject implements NSCopying, NSSecureCoding {
static