UNPKG

@funkit/connect

Version:

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

18 lines (17 loc) 711 B
import { type CheckoutHistoryItem } from '@funkit/api-base'; import { PaymentMethod } from '~/domains/paymentMethods'; export declare const DEFAULT_NOTIF_CUTOFF: number; interface RecentCheckoutsQuery { isVisible: boolean; paymentMethod?: PaymentMethod; } interface RefreshIntervalConfig { listRefresh: number; itemRefresh: number; } export declare function useCheckoutRefreshInterval(): RefreshIntervalConfig; /** * @returns recent checkouts tied to a recipient address used in the token transfer flow */ export declare const useRecentCheckouts: ({ paymentMethod, isVisible, }: RecentCheckoutsQuery) => import("@tanstack/react-query").UseQueryResult<CheckoutHistoryItem[], Error>; export {};