#ifndef DIDACTYL_SETUP_WIZARD_H
#define DIDACTYL_SETUP_WIZARD_H

#include <stddef.h>

#include "config.h"

/*
 * setup_wizard_run
 *
 * Return values:
 *   0  -> bootstrap/overwrite mode selected (new agent or load genesis), continue boot
 *   1  -> wrote config/genesis and requested exit (no boot)
 *   2  -> existing-agent recovery mode selected, continue boot
 *  -1  -> abort/error
 */
#define SETUP_WIZARD_RC_BOOTSTRAP 0
#define SETUP_WIZARD_RC_EXIT 1
#define SETUP_WIZARD_RC_EXISTING 2
#define SETUP_WIZARD_RC_ABORT -1

int setup_wizard_run(didactyl_config_t* config, char* genesis_path_out, size_t genesis_path_out_size);

#endif