/** * The `PowerAuthTimeSynchronizationService` allows you to synchronize the * local device time with the PowerAuth Server and then get the synchronized time. */ export declare class PowerAuthTimeSynchronizationService { private instanceId; /** * Creates a new instance of `PowerAuthTimeSynchronizationService`. * * @param instanceId Identifier of `PowerAuth` instance bound to this service. */ constructor(instanceId: string); /** Returns whether the service has its time synchronized with the server. */ isTimeSynchronized(): Promise; /** * Return the current local time synchronized with the server. The returned value is in milliseconds since the * reference date 1.1.1970 (e.g. unix timestamp.) * * If the local time is not synchronized, then returns the current device local time. * * You can test `isTimeSynchronized` method if this is not sufficient for your purposes. */ currentTime(): Promise; /** Synchronize the local time with the time on the server. */ synchronizeTime(): Promise; /** Reset the time synchronization. The time must be synchronized again after this call. */ resetTimeSynchronization(): Promise; /** * Contains calculated local time difference against the server in milliseconds. The value of the property * is informational and is provided only for the testing or the debugging purposes. */ localTimeAdjustment(): Promise; /** * Contains value representing a maximum absolute deviation of synchronized time against the actual time on the server in milliseconds. * * Depending on this value you can determine whether this deviation is within your expected margins. If the current * synchronized time is out of your expectations, then try to synchronize the time again. */ localTimeAdjustmentPrecision(): Promise; }