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.

15 lines (14 loc) 592 B
import type { ExchangeRateUpdateParams, Route } from '@lifi/sdk'; interface RouteExecutionProps { routeId: string; executeInBackground?: boolean; onAcceptExchangeRateUpdate?(resolver: (value: boolean) => void, data: ExchangeRateUpdateParams): void; } export declare const useRouteExecution: ({ routeId, executeInBackground, onAcceptExchangeRateUpdate, }: RouteExecutionProps) => { executeRoute: () => void; restartRoute: () => void; deleteRoute: () => void; route: Route | undefined; status: import("../stores").RouteExecutionStatus | undefined; }; export {};