/**
 * useEscapeBack — wires Esc to back-navigation on the calling screen.
 *
 * Only fires when `store.canGoBack()` is true at the moment Esc is pressed,
 * so it self-disables on the first decision-point screen and on any screen
 * that sits behind a back-stop wall (e.g. after the agent Run completes).
 *
 * Also registers the `[Esc] Back` key hint via `useScreenHints` whenever
 * back is available, so the hint bar reflects what the keystroke actually
 * does. Existing screen-specific hints can be merged via `extraHints`.
 *
 * Design rationale: Esc was chosen over Shift+Tab because Esc-as-back is
 * the dominant convention in TUI wizards (Claude Code, npm init,
 * create-next-app, k9s, lazygit) and reads as "step out of this decision"
 * to most users. Screens that already bind Esc to a screen-specific
 * action (skip, cancel) opt out by simply not calling this hook.
 */
import type { WizardStore } from '../store.js';
import type { KeyHint } from '../components/KeyHintBar.js';
interface UseEscapeBackOptions {
    /** Hints to render alongside `[Esc] Back`. */
    extraHints?: readonly KeyHint[];
    /**
     * Force-disable the hook (e.g. while a screen is in a phase where
     * back would be confusing — submitting a form, mid-API-call, etc).
     * Defaults to true.
     */
    enabled?: boolean;
}
export declare function useEscapeBack(store: WizardStore, options?: UseEscapeBackOptions): void;
export {};
