#!/usr/bin/env node /** * Setup wizard for the Hindsight OpenClaw plugin. * * Two modes of operation: * * 1. Interactive — no flags, just run `hindsight-openclaw-setup`. Walks the * user through picking a mode (Cloud / External API / Embedded daemon) * via @clack/prompts and writes openclaw.json. * * 2. Non-interactive — pass `--mode cloud|api|embedded` plus the relevant * flags for that mode. No prompts, intended for CI and scripted installs. * * Scanner-safe: does not import subprocess APIs and does not read environment * variables directly. Pure config manipulation lives in setup-lib.ts. */ import { type SetupMode } from "./setup-lib.js"; export interface ParsedCliArgs { help: boolean; configPath?: string; mode?: SetupMode; apiUrl?: string; token?: string; tokenEnv?: string; noToken: boolean; provider?: string; apiKey?: string; apiKeyEnv?: string; model?: string; positional?: string; } export declare function parseCliArgs(argv: string[]): ParsedCliArgs; export declare function runNonInteractive(args: ParsedCliArgs, configPath: string): Promise<{ summary: string; configPath: string; }>;