UNPKG

@lifi/widget

Version:

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.

10 lines (9 loc) 708 B
import type { StoreApi } from 'zustand'; import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional'; import type { PersistStoreProviderProps } from '../types.js'; import type { ChainOrderState } from './types.js'; export type ChainOrderStore = UseBoundStoreWithEqualityFn<StoreApi<ChainOrderState>>; export declare const ChainOrderStoreContext: import("react").Context<ChainOrderStore | null>; export declare function ChainOrderStoreProvider({ children, ...props }: PersistStoreProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useChainOrderStoreContext(): ChainOrderStore; export declare function useChainOrderStore<T>(selector: (state: ChainOrderState) => T): T;