import { Observable } from "rxjs"; /** * Provides additional information about Observable request. Used by {@link trackStatus} */ export interface RequestStatus { isLoading: boolean; value?: T; error?: any; } /** * Wraps Observable into a RequestStatus object that provides additional information: isLoading, error, etc. * * @example * * {{ request.isLoading ? "loading" : request.value }} * * @param observable * @returns */ export declare function trackStatus(observable: Observable): Observable>; /** * Adds support of executing request retries on refresh interval with initial execution delay */ export declare class AsyncWrapper { private isValueLoading; readonly error: Observable; readonly value: Observable; get isLoading(): boolean; constructor(provider: () => Observable, settings: { refreshInterval: number; initialDelay?: number; }); }