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) 819 B
/// <reference types="react" /> import type { StoreApi } from 'zustand'; import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional'; import type { PersistStoreProviderProps } from '../types'; import type { RouteExecutionState } from './types'; 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 useRouteExecutionStore<T>(selector: (state: RouteExecutionState) => T, equalityFn?: (left: T, right: T) => boolean): T; export declare function useRouteExecutionStoreContext(): RouteExecutionStore;