Returns an async function that resolves an OTP code for the given bank.
Bank name displayed to the user in the prompt.
OptionaltimeoutSeconds: number
Optional per-bank timeout override; falls back to the prompter's configured default when omitted.
Async function that blocks until an OTP code is received.
ITwoFactorPrompter — abstracts 2FA OTP collection from the scrape strategy.
The Scraper layer depends on this interface only; the concrete
TwoFactorService(which couples toTelegramNotifier) is wired by the composition root insrc/Index.ts. This removes the only cross-layer concretenewin the codebase (Pattern D — Surgical Win).