import { type Dispatch } from 'react'; import type { ConvertEvent, ConvertSubmission } from '../domains/convert/reducer'; import type { ConvertConfig } from '../domains/convert/types'; /** * Follows a recorded conversion to settlement, like withdrawal's * `useNadoWithdrawalStatus`: polls its direct execution with the same hook * checkout and withdrawal status screens use. Once per conversion, when Relay * reports a terminal status, it fires the host's callback and reports * `COMPLETED` or `FILL_FAILED`. A refund reads as a failure. */ export declare function useConvertTransactionStatus({ submission, dispatch, onSuccess, onError, }: { /** Only a `pending` submission is polled. */ submission: ConvertSubmission | undefined; dispatch: Dispatch; onSuccess?: ConvertConfig['onSuccess']; onError?: ConvertConfig['onError']; }): void;