/** * Copyright: ThoughtSpot Inc. 2012-2016 * Author: Shashank Singh (sunny@thoughtspot.com) * * @fileoverview ThoughtSpot Javascript API for use of ThoughtSpot in external webpages. */ declare type Callback = (...args: any[]) => void; declare function initialize(onInitialized: Callback, onAuthExpiration: Callback, _thoughtspotHost: string): void; declare function notifyOnAuthExpiration(): void; declare function subscribeToAlerts(tsHost: string, onAlertCallback: Callback): void; declare function subscribeToData(responseCallback: Callback): void; declare function getCurrentData(responseCallBack: Callback): void; export { initialize, notifyOnAuthExpiration, subscribeToAlerts, subscribeToData, getCurrentData, };