import { FetchStateAndError } from './common'; /** * Reduces list of fetch state to boolean * @param fetchStateList list of fetch states * @returns true if all fetch states are completed. */ export declare const isAllFetchCompleted: (fetchStateList: FetchStateAndError[]) => boolean; /** * Reduces list of fetch state to single fetchState * @param fetchStateList list of fetch states * @return single fetchStateWithError */ export declare function reduceFetchState(fetchStateList: FetchStateAndError[]): FetchStateAndError; /** * Combine multiple independent fetches (e.g. month / quarter / year for one report). * In-Progress if any fetch is in progress; Completed only when all complete; Error if * any failed once nothing is still in progress. * * Differs from {@link reduceFetchState} (requires all In-Progress for that state) and * from {@link reduceAllFetchState} (Error only when every fetch failed). */ export declare function reduceFetchStateParallelTimeframes(fetchStateList: FetchStateAndError[]): FetchStateAndError; /** * Reduces list of fetch state to boolean * @param fetchStateList list of fetch states * @returns true if any fetch state is in progress. */ export declare const isAnyFetchInProgress: (fetchStateList: FetchStateAndError[]) => boolean; /** * Reduces list of fetch state to boolean * @param fetchStateList list of fetch states * @returns true if any fetch state is completed. */ export declare const isAnyFetchCompleted: (fetchStateList: FetchStateAndError[]) => boolean; /** * Reduces list of fetch state to single fetchState * @param fetchStateList list of fetch states * @returns If all fetch states are completed, then the fetch state comes back as completed, if any of them is errored out, then state comes as error. */ export declare const reduceAnyFetchState: (fetchStateList: FetchStateAndError[]) => FetchStateAndError; /** * Reduces list of fetch state to single fetchState * @param fetchStateList list of fetch states * @returns If all fetch states are completed, then the fetch state comes back as completed, if all of them are errored out, then state comes as error. */ export declare const reduceAllFetchState: (fetchStateList: FetchStateAndError[]) => FetchStateAndError; /** * Reduces list of fetch state to single fetchState * @param fetchStateList list of fetch states * @returns If any fetch state is completed, then the fetch state comes back as completed, if any of them is errored out, then state comes as error. */ export declare const reduceAnyCompletedFetchState: (fetchStateList: FetchStateAndError[]) => FetchStateAndError;