/** * Follows a submitted Nado withdrawal through to the user's wallet. * * Nado sends to a Fun deposit address (UDA), and the eoa scanner records the * arrival as a direct execution against the owner wallet rather than against the * address, so this finds that DE in the wallet's recent list and follows its * relay status. */ import type { Address } from 'viem'; export type NadoWithdrawalStatus = 'pending' | 'completed' | 'failed'; /** The destination-chain transaction that delivered the funds. */ export interface NadoWithdrawalCompletionTx { chainId: string; txHash: string; /** Set when the destination isn't served by the default explorer. */ customRedirectUrl: string | undefined; } export interface NadoWithdrawalTracking { status: NadoWithdrawalStatus; /** Only once delivered — a failed withdrawal has no completion. */ completionTx: NadoWithdrawalCompletionTx | undefined; } export declare function useNadoWithdrawalStatus({ depositAddress, pollIntervalMs, }: { /** UDA the sequencer was told to send to. */ depositAddress: Address | undefined; pollIntervalMs: number; }): NadoWithdrawalTracking;