import { type DrainableTui } from './tui-lifecycle.js';
type StartableTui = DrainableTui & {
    start: () => void;
};
/**
 * Pause the TUI (drain stdin + stop), run async work with a normal terminal, then restart.
 * Caller should refocus the editor after `start()` if needed.
 */
export declare function withTuiSuspended<T>(tui: StartableTui, work: () => Promise<T>): Promise<T>;
export {};
