UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

14 lines (13 loc) 675 B
import type { FunInputChangeEvent } from '~/components/FunInput/FunInput'; import { type AmountInputDerivedState, type AmountInputInitOptions } from './state'; import { type InputAmountSuggestion } from './utils'; interface UseAmountInputResult extends AmountInputDerivedState { onChange(event: FunInputChangeEvent): void; placeholder: string; setFiatAmount(usdAmount: number): AmountInputDerivedState; /** Possible user action to recover from the current error */ suggestion: InputAmountSuggestion | undefined; toggleInputInFiat: () => void; } export declare function useAmountInput(options: AmountInputInitOptions): UseAmountInputResult; export {};