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.

11 lines (10 loc) 779 B
/// <reference types="react" /> import type { StoreApi } from 'zustand'; import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional'; import type { PersistStoreProviderProps } from '../types'; import type { ChainOrderState } from './types'; 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 useChainOrderStore<T>(selector: (state: ChainOrderState) => T, equalityFn?: (left: T, right: T) => boolean): T; export declare function useChainOrderStoreContext(): ChainOrderStore;