/** * Wizard Navigation - Shared Constants and Types for Init Wizard * * Provides "go back" navigation support across all init wizard steps. * Each prompt can return WIZARD_BACK to signal the user wants to go back. */ import type { SupportedLanguage } from '../../../core/i18n/types.js'; /** * Symbol indicating user wants to go back to previous step */ export declare const WIZARD_BACK: unique symbol; /** * Type for wizard step results that support going back */ export type WizardResult = T | typeof WIZARD_BACK; /** * Check if result is a go-back signal */ export declare function isGoBack(result: WizardResult): result is typeof WIZARD_BACK; /** * Translations for go-back option */ interface GoBackStrings { goBack: string; yes: string; no: string; goingBack: string; } /** * Get go-back strings for a language */ export declare function getGoBackStrings(language: SupportedLanguage): GoBackStrings; /** * Create a "go back" choice for select prompts */ export declare function createGoBackChoice(language?: SupportedLanguage): { value: 'back'; name: string; }; /** * Log "going back" message */ export declare function logGoingBack(language?: SupportedLanguage): void; export {}; //# sourceMappingURL=wizard-navigation.d.ts.map