@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
17 lines (16 loc) • 637 B
TypeScript
import { type MeldQuote } from '@funkit/api-base';
import { type UseQueryResult } from '@tanstack/react-query';
import type { ReactNode } from 'react';
/**
* Triggered only when fiatCurrency is provided.
*
* - The source amount is debounced.
* - Query errors are discarded while the input amount is not equal to its debounced value.
* - In that case, `isOutdated` is also set to `true`.
*/
export declare const useMeldQuotes: (sourceAmount: number | undefined, fiatCurrency: string | undefined, meldEnabled?: boolean) => {
countdown: ReactNode;
query: UseQueryResult<MeldQuote[]> & {
isOutdated: boolean;
};
};