import { ChainTypeEnum } from '@bit-ui-libs/common'; import type { EventArg, NavigationState } from '@react-navigation/native'; interface ChainTypeStoreState { type: ChainTypeEnum; setType: (type: ChainTypeEnum) => void; } export declare const useChainTypeStore: import("zustand").UseBoundStore>; /** * React Navigation routes listener to check every route for the `chainType` param. * * If this route exists, then we update our zustand store * so that components can obtain `chainType` without prop drilling. * * @param e Event passed by React Navigation, which contains `NavigationState` and possibly `chainType` * @returns {void} */ export declare const chainTypeNavigationListener: (e: EventArg<'state', undefined, { state?: NavigationState; }>) => void; interface ObjectWithChainType { /** * This is the ideal property that describes the Chain Type. * Most screens involving a chained token should have this. */ chainType?: ChainTypeEnum; } /** * This function tries to figure out what the Chain Type is * no matter where you are - if in a component, screen, or hook * * Order of checking for Chain Type starts from specific (screen params) to general (global state) */ export declare function useInferChainType(opts?: ObjectWithChainType): ChainTypeEnum; export {}; //# sourceMappingURL=use-infer-chain-type.d.ts.map