@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
12 lines (11 loc) • 671 B
TypeScript
import { PaymentMethod } from '~/domains/paymentMethods';
/**
* https://linear.app/funxyz/issue/ENG-1154/update-dydx-and-polymarkets-time-estimate
* https://linear.app/funxyz/issue/PE-775/sdkconnectwith-next-pm-requests
* @param originalTimeEstimationMs time estimation in milliseconds
* @param paymentMethod payment method
* @param bypassFlag whether to ignore flag value and return the original time estimation fallback even if flag is defined
* @returns time estimation in seconds
*/
export declare function useCheckoutTimeEstimate(originalTimeEstimationMs: number | undefined, paymentMethod?: PaymentMethod, //TODO: questionable
bypassFlag?: boolean): number;