/** * awaitInkScreen — centralizes the Ink render/wait pattern. * * Problem solved: * The previous pattern used `.then(resolve)` without `.catch`, which silently * swallows rejections from `waitUntilExit()` (e.g. SIGTERM, internal Ink error). * * Usage: * const instance = render(); * return awaitInkScreen(instance, () => result); */ export declare function awaitInkScreen(instance: { waitUntilExit(): Promise; }, getResult: () => T): Promise;