import { ChainLegacy, RootState, WalletAdapter } from '../types'; import type { Action } from '../useReducer'; import GatekeeperClient from '../utils/gatekeeperClient'; /** * The orchestrator hook handles the main business logic of the component handling 2 main scenarios: * 1. the creation of a new gateway token for a new user * 2. the refreshing of an existing token for an existing user * * The orchestrator triggers uses effects to trigger flows for these two scenarios * * @param {{ wallet: WalletAdapter | undefined; clusterUrl: string; gatekeeperNetworkAddress: string | undefined; stage: string }} param0 * @param {Partial} state * @param {React.Dispatch} dispatch * @returns void */ declare const useOrchestration: ({ wallet, stage, chainImplementation, gatekeeperClient, forceRequireRefresh, }: { wallet: WalletAdapter | undefined; stage: string; chainImplementation: ChainLegacy | undefined; gatekeeperClient: GatekeeperClient | undefined; forceRequireRefresh?: boolean | undefined; }, state: RootState, dispatch: React.Dispatch) => void; export default useOrchestration;