import { NativeModule } from "../managers/NativeModuleHelper"; import { ServerTimeModule } from "../interfaces/ServerTimeModule"; import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager"; import { NativeModuleResponse } from "../interfaces/NativeModuleResponse"; export default class ServerTimeModuleImpl extends NativeModule implements ServerTimeModule { constructor(nativeModuleCallbackManager: NativeModuleCallbackManager); /** * This is used to get the difference(timeDiff, in milliseconds) between the system clock and the server clock. * if the newResponse === true the object will be returned upon successfull promise resolve. * ex- {"latency":149,"timeDiff":-101,"localTime":1584435205237} * if the newResponse === false, only timeDiff integer value as string will be returned. * Returns a promise that when resolved gets a string that can be parsed into an integer. */ getTimeDiff(newResponse?: boolean): Promise>; }