/** * Check whether sudo credentials are already cached. * Returns true if `sudo -n true` succeeds (no password needed). */ export declare function isSudoCached(): boolean; /** * Ensure sudo credentials are available before Ink captures stdin. * * 1. If already cached, returns silently. * 2. Otherwise, warns the user and runs `sudo -v` which prompts * for their password using the real terminal. * * Must be called BEFORE Ink render(). * Calls process.exit(1) if authentication fails. */ export declare function ensureSudo(templateName: string): void;