import { TransactionRequest } from 'ethers'; import { CheckoutError, CheckoutErrorType } from '../errors'; import { WrappedBrowserProvider, SendTransactionResult } from '../types'; export declare function isPassportProvider(provider?: WrappedBrowserProvider | null): boolean; /** * Checks conditions to operate a gas-free flow. * * TODO: * - Phase 1 (2024): Allow all passport wallets to be gas-free. * - Phase 2 & 3 (2025): Not all passport wallets will be gas-free. * Therefore, the gas-free condition must be checked against the relayer's * `im_getFeeOptions` endpoint, which should return zero for * passport accounts with gas sponsorship enabled. * * Refer to the docs for more details: * https://docs.immutable.com/docs/zkevm/architecture/gas-sponsorship-for-gamers/ */ export declare function isGasFree(provider?: WrappedBrowserProvider | null): boolean; export declare const setTransactionGasLimits: (browserProvider: WrappedBrowserProvider, transaction: TransactionRequest) => Promise; export declare const handleProviderError: (err: any) => CheckoutError; export declare const sendTransaction: (browserProvider: WrappedBrowserProvider, transaction: TransactionRequest) => Promise;