UNPKG

@funkit/connect

Version:

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

13 lines (12 loc) 616 B
import { type AmountInputDerivedState, type AmountInputInitOptions } from './state'; import { type InputAmountSuggestion } from './utils'; interface UseAmountInputResult extends AmountInputDerivedState { onChange(event: React.ChangeEvent<HTMLInputElement>): 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 {};