import type { WithdrawalFlowCallbacks } from '../flow/withdrawalFlowConfig'; import type { DepositAddressOrHash } from '../withdrawal/useCryptoWithdrawalExecution'; /** * Follows a submitted crypto withdrawal to a terminal state. Split from the * screen so the polling query unmounts with it, and so the host is told exactly * once, when the chain settles rather than when we submitted. * * Both trackers are called on every render and the unused one idles on * `undefined` — a hook cannot be called conditionally, and the rail is fixed for * the life of this screen anyway. * * The callbacks are fired from an effect, where a throw would unmount the tree — * they arrive guarded (`guardHostCallbacks`), which is what makes that safe. * * Closing the flow ends the follow with it — the SDK runs no work behind a shut * sheet. The host still holds what `onWithdrawalSubmitted` gave it at submit and * can settle the transfer itself; the log below is how often that happens. */ export declare function WithdrawCryptoComplete({ depositAddressOrHash, amountLabel, usdLabel, tokenLabel, callbacks, onDone, }: { depositAddressOrHash: DepositAddressOrHash; amountLabel: string; /** What arrived, frozen at submission. */ usdLabel: string | undefined; tokenLabel: string | undefined; callbacks: WithdrawalFlowCallbacks; onDone: () => void; }): import("react").JSX.Element; //# sourceMappingURL=WithdrawCryptoComplete.d.ts.map