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) 748 B
import type { StoreApi } from 'zustand'; import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional'; import type { PersistStoreProviderProps } from '../types.js'; import type { RouteExecutionState } from './types.js'; export type RouteExecutionStore = UseBoundStoreWithEqualityFn<StoreApi<RouteExecutionState>>; export declare const RouteExecutionStoreContext: import("react").Context<RouteExecutionStore | null>; export declare function RouteExecutionStoreProvider({ children, ...props }: PersistStoreProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useRouteExecutionStoreContext(): RouteExecutionStore; export declare function useRouteExecutionStore<T>(selector: (state: RouteExecutionState) => T): T;