import { FunCheckoutStep } from './FunCheckoutStep'; import type { CheckoutModalState } from './stepTransition'; /** Steps whose state carries a `withdrawalConfig` (the withdrawal-mode region). */ type WithdrawalStep = FunCheckoutStep.WITHDRAWAL_ENTER_AMOUNT | FunCheckoutStep.WITHDRAWAL_COMPLETE | FunCheckoutStep.SOURCE_CHANGE; /** * Authoritative list of steps that require the shared active checkout to be in * *withdrawal* mode (`convertActiveCheckoutToWithdrawal`). `FunCheckoutModal`'s * checkout↔withdrawal lifecycle effect keys off this. * * - Dedicated withdrawal steps (enter-amount, complete) always qualify. * - The Withdraw tab on SourceChange qualifies only once its `withdrawalConfig` * is seeded: the swapped chooser tab leaves it undefined, so a mere tab visit * must not hijack deposit query authority into withdrawal mode. * * Narrows to the states that carry `withdrawalConfig`, so callers can read it * without re-checking the step. Adding a new withdrawal screen? Add its step * both here and to {@link WithdrawalStep}, or the modal won't enter withdrawal * mode for it. * * Lives in its own module (not `stepTransition.ts`) so it stays a pure, * dependency-light helper — importable without pulling in the step components, * and unit-testable without mocking the modal graph. */ export declare function isWithdrawalStep(modalState: CheckoutModalState): modalState is CheckoutModalState; export {};