UNPKG

@dataswift/hat-js

Version:

HAT JavaScript SDK for web and Node.js

17 lines (16 loc) 469 B
import { HatClient, HatClientConfig } from './index'; export declare class State { apiVersion: string; hatDomain: string; token: string; secure: boolean; authenticated: boolean; onTokenChange?: (token: string) => void; observers: Array<HatClient>; constructor(state: HatClientConfig); setToken(token: string): void; signOut(): void; addObserver(o: HatClient): void; notifyObservers(): void; private validateConfig; }