@class NSMutableDictionary, HKWorkoutBuilderConfiguration, NSDate, NSDictionary, NSObject, HKWorkoutActivity, HKHealthStore, HKTaskServerProxyProvider, HKStateMachine, NSString, HKWorkoutConfiguration, HKRetryableOperation, NSArray, HKDevice, NSUUID; @protocol OS_dispatch_queue; @interface HKWorkoutBuilder : NSObject <_HKXPCExportable, HKWorkoutBuilderClientInterface, HKStateMachineDelegate> { HKWorkoutActivity *_currentActivity; HKWorkoutBuilderConfiguration *_builderConfiguration; NSDate *_workoutStartDate; NSDate *_workoutEndDate; NSDictionary *_metadata; NSArray *_workoutEvents; NSMutableDictionary *_activitiesPerUUID; double _accumulatedElapsedTime; double _lastResumeTimestamp; BOOL _currentlyRunning; long long _serverConstructionState; HKStateMachine *_constructionStateMachine; HKRetryableOperation *_retryableOperation; id /* block */ _beginCollectionCompletionHandler; id /* block */ _endCollectionCompletionHandler; id /* block */ _finishWorkoutCompletionHandler; id /* block */ _unitTest_serverStateChangedHandler; id /* block */ _unitTest_recoveryFinishedHandler; id /* block */ _unitTest_failureHandler; } @property (retain, nonatomic) NSMutableDictionary *seriesBuilders; @property (retain, nonatomic) NSMutableDictionary *statisticsByType; @property (readonly, nonatomic) NSObject<OS_dispatch_queue> *resourceQueue; @property (readonly, nonatomic) HKTaskServerProxyProvider *proxyProvider; @property (readonly, nonatomic) HKHealthStore *healthStore; @property (readonly, copy, nonatomic) NSUUID *identifier; @property (copy, nonatomic) HKWorkoutBuilderConfiguration *configuration; @property (readonly) BOOL isCurrentlyRunning; @property (readonly, copy) HKDevice *device; @property (readonly, copy) NSDate *startDate; @property (readonly, copy) NSDate *endDate; @property (readonly, copy) HKWorkoutConfiguration *workoutConfiguration; @property (readonly, copy) NSDictionary *metadata; @property (readonly, copy) NSArray *workoutEvents; @property (readonly, copy) NSArray *workoutActivities; @property (readonly, copy) NSDictionary *allStatistics; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; + (id)clientInterface; + (id)serverInterface; + (long long)_collectionStateAtDate:(id)a0 startDate:(id)a1 endDate:(id)a2 sortedEvents:(id)a3; + (id)_constructionStateMachineForBuilderConfiguration:(id)a0 builderIdentifier:(id)a1; + (double)_elapsedTimeAtDate:(id)a0 startDate:(id)a1 endDate:(id)a2 sortedEvents:(id)a3; - (id)exportedInterface; - (void)connectionInterrupted; - (id)_currentSnapshot; - (id)init; - (id)remoteInterface; - (unsigned long long)goalType; - (void)connectionInvalidated; - (void)clientRemote_synchronizeWithCompletion:(id /* block */)a0; - (void).cxx_destruct; - (void)clientRemote_didUpdateMetadata:(id)a0; - (void)currentZonesForType:(id)a0 completion:(id /* block */)a1; - (double)_currentElapsedTime; - (void)_pushCurrentTargetState; - (void)_recoverWithCompletion:(id /* block */)a0; - (void)_removeMetadata:(id)a0 completion:(id /* block */)a1; - (void)_resourceQueue_addMetadata:(id)a0 completion:(id /* block */)a1; - (void)_resourceQueue_addSamples:(id)a0 completion:(id /* block */)a1; - (void)_resourceQueue_addWorkoutActivity:(id)a0 completion:(id /* block */)a1; - (void)_resourceQueue_addWorkoutEvents:(id)a0 completion:(id /* block */)a1; - (void)_resourceQueue_beginCollectionWithStartDate:(id)a0 completion:(id /* block */)a1; - (void)_resourceQueue_endCollectionWithEndDate:(id)a0 completion:(id /* block */)a1; - (id)_resourceQueue_endDateForSnapshotWithStartDate:(id)a0; - (id)_resourceQueue_eventsBetweenStartDate:(id)a0 endDate:(id)a1; - (void)_resourceQueue_finishWorkoutWithCompletion:(id /* block */)a0; - (void)_resourceQueue_freezeSeriesBuilders; - (void)_resourceQueue_markRecoveryRequired; - (void)_resourceQueue_removeMetadata:(id)a0 completion:(id /* block */)a1; - (id)_resourceQueue_seriesBuilderWithIdentifier:(id)a0 type:(id)a1; - (void)_resourceQueue_setStatisticsComputationMethod:(long long)a0 forType:(id)a1; - (void)_resourceQueue_setStatisticsMergeStrategy:(unsigned long long)a0 forType:(id)a1; - (id)_resourceQueue_startDateForSnapshot; - (void)_resourceQueue_updateActivityWithUUID:(id)a0 addMetadata:(id)a1 completion:(id /* block */)a2; - (void)_resourceQueue_updateActivityWithUUID:(id)a0 endDate:(id)a1 completion:(id /* block */)a2; - (void)_resourceQueue_updateDevice:(id)a0; - (void)_resourceQueue_updateElapsedTimeCache; - (void)_resourceQueue_updateEvents:(id)a0; - (void)_restoreRecoveredSeriesBuildersWithCompletion:(id /* block */)a0; - (void)_setDevice:(id)a0; - (void)_setStatisticsComputationMethod:(long long)a0 forType:(id)a1; - (void)_setStatisticsMergeStrategy:(unsigned long long)a0 forType:(id)a1; - (BOOL)_validateObjects:(id)a0 forClass:(Class)a1 error:(out id *)a2; - (void)addMetadata:(id)a0 completion:(id /* block */)a1; - (void)addSamples:(id)a0 completion:(id /* block */)a1; - (void)addWorkoutActivity:(id)a0 completion:(id /* block */)a1; - (void)addWorkoutEvents:(id)a0 completion:(id /* block */)a1; - (void)beginCollectionWithStartDate:(id)a0 completion:(id /* block */)a1; - (void)clientRemote_didBeginActivity:(id)a0; - (void)clientRemote_didChangeElapsedTimeBasisWithStartDate:(id)a0 endDate:(id)a1; - (void)clientRemote_didEndActivity:(id)a0; - (void)clientRemote_didFailWithError:(id)a0; - (void)clientRemote_didFinishRecovery; - (void)clientRemote_didRecoverSeriesBuilders:(id)a0; - (void)clientRemote_didUpdateActivities:(id)a0; - (void)clientRemote_didUpdateEvents:(id)a0; - (void)clientRemote_didUpdateStatistics:(id)a0; - (void)clientRemote_finishedWorkout:(id)a0; - (void)clientRemote_stateDidChange:(long long)a0 startDate:(id)a1 endDate:(id)a2; - (void)discardWorkout; - (double)elapsedTimeAtDate:(id)a0; - (void)endCollectionWithEndDate:(id)a0 completion:(id /* block */)a1; - (void)finishWorkoutWithCompletion:(id /* block */)a0; - (id)goal; - (id)initWithHealthStore:(id)a0 builderConfiguration:(id)a1 builderIdentifier:(id)a2; - (id)initWithHealthStore:(id)a0 configuration:(id)a1 device:(id)a2; - (id)initWithHealthStore:(id)a0 configuration:(id)a1 goalType:(unsigned long long)a2 goal:(id)a3 device:(id)a4; - (id)seriesBuilderForType:(id)a0; - (void)stateMachine:(id)a0 didEnterState:(id)a1 date:(id)a2 error:(id)a3; - (void)stateMachine:(id)a0 didTransition:(id)a1 fromState:(id)a2 toState:(id)a3 date:(id)a4 error:(id)a5; - (id)statisticsForType:(id)a0; - (void)unitTest_setFailureHandler:(id /* block */)a0; - (void)unitTest_setRecoveryFinishedHandler:(id /* block */)a0; - (void)unitTest_setServerStateChangeHandler:(id /* block */)a0; - (void)updateActivityWithUUID:(id)a0 addMedatata:(id)a1 completion:(id /* block */)a2; - (void)updateActivityWithUUID:(id)a0 endDate:(id)a1 completion:(id /* block */)a2; @end