import GatekeeperClient, { GatekeeperRecordResponse } from '../utils/gatekeeperClient'; import { RootState, WalletAdapter } from '../types'; import type { Action } from '../useReducer'; export declare const isRefreshFlow: (state: RootState) => boolean; export type UseGatekeeperRecordAction = { type: 'getGatekeeperRecord'; } | { type: 'getGatekeeperRecord_success'; gatekeeperRecord: GatekeeperRecordResponse; } | { type: 'getGatekeeperRecord_in_partner_review'; gatekeeperRecord: GatekeeperRecordResponse; } | { type: 'getGatekeeperRecord_location_not_supported'; gatekeeperRecord: GatekeeperRecordResponse; } | { type: 'getGatekeeperRecord_issued_location_not_supported'; gatekeeperRecord: GatekeeperRecordResponse; } | { type: 'getGatekeeperRecord_vpn_not_supported'; gatekeeperRecord: GatekeeperRecordResponse; } | { type: 'getGatekeeperRecord_issued_vpn_not_supported'; gatekeeperRecord: GatekeeperRecordResponse; } | { type: 'getGatekeeperRecord_not_found'; gatekeeperRecord: GatekeeperRecordResponse; } | { type: 'getGatekeeperRecord_retries_exhausted'; gatekeeperRecord: GatekeeperRecordResponse; } | { type: 'getGatekeeperRecord_failure'; gatekeeperRecord: GatekeeperRecordResponse; } | { type: 'getGatekeeperRecord_rejected'; gatekeeperRecord: GatekeeperRecordResponse; }; export declare const reducer: (state: RootState, action: Action) => RootState; export type UseGatekeeperRecordFns = { getGatekeeperRecordResponseAction: (gatekeeperRecordResp: GatekeeperRecordResponse) => () => Action; dispatchGatekeeperRecord: (abortController?: AbortController) => Promise; dispatchFailure: () => Action; }; declare const useGetGatekeeperRecord: ({ wallet, gatekeeperClient, }: { wallet: WalletAdapter | undefined; gatekeeperClient: GatekeeperClient | undefined; }, dispatch: React.Dispatch) => UseGatekeeperRecordFns; export default useGetGatekeeperRecord;