import { PaymentProvider } from '../lib/types'; import { ApiRequestError, ApiResponse } from './api'; export interface CheckoutLookup { providerKey: PaymentProvider; transactionId?: string; returnUrl?: string; } export declare function isCheckoutResultUnknown(error: unknown): error is ApiRequestError; /** * Asks /payment/detail whether the payment the browser got no answer for went through, * so the user is not told it failed (and does not pay again) when it did. The session * is still the one the payment was made in: it is only dropped once a payment succeeds. * Resolves to a checkout-like COMPLETE response, or null when no payment was recorded. */ export declare function recoverCheckoutResult(payload: { lookup: CheckoutLookup; error: ApiRequestError; startedAt: number; }): Promise;