export declare type Subscriber = (newToken?: string) => void; interface NodeMapEntry { el: HTMLElement; loadMark: number; } export interface NodeMap { [tagName: string]: NodeMapEntry[]; } interface Initialization { authToken?: string; env?: 'local' | 'stage' | 'prod'; metrics?: boolean; waitTime?: number | string; connectionEl?: HTMLElement; } export declare class ConnectionState { authToken?: string; env: 'local' | 'stage' | 'prod'; metrics: boolean; waitTime: number; nodeMap: NodeMap; private subscribers; private initialized; initialize: ({ env, metrics, waitTime, }: Initialization) => void; onReady: () => Promise; subscribe: (s: Subscriber) => () => void; setAuthToken: (token: string) => void; getAuthToken: () => string | undefined; restFetch: import("../utils/restFetch").RestFetch; graphqlFetch: import("../utils/graphqlFetch").GraphqlFetch; } export declare const connection: ConnectionState; export {};