import { type CheckoutHistoryItem, type CheckoutRefundState, CheckoutState, type DirectExecution } from '@funkit/api-base'; import { type Hex } from 'viem'; /** * Customer-agnostic checkout-history helpers shared by web and React Native. * The web-coupled pieces (wagmi balance/decimals reads, quote math, customer * branches) stay in `@funkit/connect`'s `utils/checkout.ts`. */ /** * @returns whether we should show the checkout to the user (ie. supported in current sdk version & not cancelled) */ export declare const isCheckoutValid: (checkout: CheckoutHistoryItem | MergedCheckoutHistoryItem) => boolean; export declare const isCheckoutHistoryDirectExecution: (checkoutId: string) => boolean; export type MergedCheckoutHistoryItem = { directExecution: boolean; /** For direction execution this is the tx hash, for checkouts it is the deposit address */ id: Hex; refundState?: CheckoutRefundState; state: CheckoutState; } & ((CheckoutHistoryItem & { directExecution: false; }) | (DirectExecution & { directExecution: true; })); export declare function toMergedCheckoutHistoryItem(item: CheckoutHistoryItem | DirectExecution): MergedCheckoutHistoryItem; //# sourceMappingURL=checkout.d.ts.map