/** * Whether `error` is currently calm. The window starts when a transient error * first appears, is held while the maintenance marker lasts, and ends with a * re-render once it expires so a lasting failure surfaces on its own. */ export declare function useCalmServiceFailure(error: Error | null | undefined): boolean; /** * `flag`, but only once it has held for `delayMs`; it drops immediately. Keeps * a brief reconnect from flashing a status. */ export declare function useDelayedFlag(flag: boolean, delayMs: number): boolean; /** How long a dropped event stream may reconnect before the composer says so. */ export declare const STREAM_RECONNECTING_NOTICE_DELAY_MS = 2000; /** * True once the session's event stream has been reconnecting for a moment * after the first load: Opengeni is updating or briefly unreachable. A quick * reconnect never shows, and neither does a first connection that has not * reported "live" yet (a slow open, or a client that never reports its * state): only a stream that was live and dropped is reconnecting. */ export declare function useStreamReconnecting(connectionState: string | undefined, initialLoading: boolean): boolean; /** * The composer state with `reconnecting` set while the event stream is * reconnecting, so the composer shows the calm updating line. */ export declare function useComposerWithStreamState(composer: T, connectionState: string | undefined, initialLoading: boolean): T;