import type { Platform, Config } from './detect.js'; export declare function writeRelayConfig(p: Platform, c: Config): void; export declare function writeWatchdogScript(p: Platform, c: Config): void; export declare function setupDirs(p: Platform): void; export declare function installRelayService(p: Platform): void; export declare function installWatchdogService(p: Platform): void; export declare function writeClaudeEnv(homeDir: string, c: Config): Promise; /** * Writes ai-config.json based on the onboard Config values, alongside * whatever writeClaudeEnv wrote to ~/.claude_env. Makes a fresh install * land in the same state the upgrade-path migrateIfNeeded() produces — * the Chat pane + CLI `nostr-station ai` see a configured provider from * first boot without requiring the user to run anything extra. * * Duplicates the API key into the new `ai:` keychain slot * so the per-provider lookup in /api/ai/chat finds it. Leaves the legacy * `ai-api-key` slot intact for Claude Code's env-var path (writeClaudeEnv). * * Also wires Claude Code as a terminal-native provider when the user * picked it as their editor — makes "Open in Claude Code" on project * cards work without a separate Config panel step. */ export declare function writeAiConfigFromOnboard(c: Config): Promise; export declare const EDITOR_START_COMMANDS: Record; export declare const EDITOR_FILENAMES: Record; export declare function writeContextFile(p: Platform, c: Config): string; export declare function symlinkEditorFile(p: Platform, editor: string): string; export declare function generateWatchdogKeypair(cargoBin: string): Promise<{ npub: string; backend: string; }>;