/** * Confirm - Yes/No confirmation component * * Simple y/n style confirmation with keyboard navigation. */ import React from 'react'; /** * Props for the Confirm component */ export interface ConfirmProps { /** The message/question to display */ message: string; /** Called when user confirms or denies */ onConfirm: (value: boolean) => void; /** Called when user cancels (Escape) */ onCancel?: () => void; /** Initial value (default: true) */ initialValue?: boolean; } /** * Confirm component * * A yes/no confirmation prompt. Use left/right arrows or y/n keys * to toggle, Enter to confirm, Escape to cancel. * * @example * ```tsx * { * if (value) generateFiles(); * else navigate('back'); * }} * onCancel={() => navigate('back')} * /> * ``` */ export declare function Confirm({ message, onConfirm, onCancel, initialValue, }: ConfirmProps): React.ReactElement;