import type { OnrampMethodId, OnrampQuote } from './fundingClient.js'; import type { FundingSessionRef } from './useFundingMethods.js'; type UseOnrampQuoteParams = { /** The session the buy would commit into; null disables fetching. */ session: FundingSessionRef | null; /** Backend method id (snake_case); undefined disables fetching. */ method?: OnrampMethodId; /** ISO-4217 fiat currency, e.g. "USD". */ sourceCurrency: string; /** Fiat amount as a number; null/≤0 disables fetching. */ amount: number | null; }; type UseOnrampQuote = { quote: OnrampQuote | null; loading: boolean; }; /** Sum the quote's fee legs (all expressed in the source/fiat currency). */ export declare function totalFee(quote: OnrampQuote): number; /** * Live quote for the buy preview, priced by the exact provider the commit would * resolve (`POST /v2/funding/sessions/{id}/quotes`). Debounced so typing doesn't * spam the backend; clears the stale quote while a new amount settles. Degrades * silently — a failed fetch leaves `quote` null and the preview omits the estimate. */ export declare function useOnrampQuote({ session, method, sourceCurrency, amount }: UseOnrampQuoteParams): UseOnrampQuote; export {};