import { GatewayStatus, RootState, GatewayToken, InternalGatewayStatus } from '../types'; export declare const fetchInProgress: (state: RootState) => boolean; export declare const fetchNotStarted: (state: RootState) => boolean; export declare const hasFetchError: (state: RootState) => boolean; export declare const resetState: (state: RootState) => RootState; export declare const validationProcessToGatewayStatus: { COLLECTING: GatewayStatus; PROCESSING: GatewayStatus; IN_REVIEW: GatewayStatus; FAILED: GatewayStatus; NOT_FOUND: GatewayStatus; COMPLETED: GatewayStatus; }; /** * get the status from the passed gateway token, if it exists * Take into account the gatekeeper record state, which overrides the gateway status if * it is set to a location-not-supported state * @param {RootState} state * @param {GatewayToken} gatewayToken * @returns {InternalGatewayStatus} */ export declare const statusFromToken: (state: RootState, gatewayToken?: GatewayToken) => InternalGatewayStatus; /** * Returns a validated gateway status, taking into account: * - whether checks are in progress (return CHECKING) * - whether the gatekeeper record state is set to a location-not-supported state (return LOCATION_NOT_SUPPORTED) * - whether the gatekeeper record state is set to a vpn-not-supported state (return VPN_NOT_SUPPORTED) * - whether the gatekeeper record state is set to an issued location-not-supported state (return REFRESH_TOKEN_REQUIRED) * - whether a data collection status exists, and if so, whether it is a subset of NOT_REQUESTED (return the data collection status) * @param {InternalGatewayStatus} status * @param {RootState} state * @returns {RootState} */ export declare const gatewayStatusIfAllowed: (status: InternalGatewayStatus, state: RootState) => InternalGatewayStatus;