type SetupStep = 'package_present' | 'plugin_discovered' | 'plugin_enabled' | 'slot_selected' | 'allow_gated' | 'orphaned_entries' | 'reload_required' | 'runtime_registered' | 'telemetry_optin'; type SetupStatus = 'ok' | 'skip' | 'fail' | 'pending' | 'warn'; type SetupReport = { path: string; steps: { step: SetupStep; status: SetupStatus; detail?: string; }[]; fallbackBlock?: string; }; declare function runSetup(opts?: { configPath?: string; openclawHome?: string; }): SetupReport; declare function formatReport(r: SetupReport): string; declare function runSetupCli(): number; declare function runDoctor(opts?: { configPath?: string; openclawHome?: string; env?: NodeJS.ProcessEnv; telemetryConfigPath?: string; }): SetupReport; declare function runDoctorCli(): number; declare function runRepair(opts?: { configPath?: string; openclawHome?: string; }): SetupReport; declare function runRepairCli(): number; export { type SetupReport, type SetupStatus, type SetupStep, formatReport, runDoctor, runDoctorCli, runRepair, runRepairCli, runSetup, runSetupCli };