import { type AgentId } from '../agents/registry'; import { type RepoMetadataResult } from './installRepoMetadata'; import { type LockVersionDrift } from '../lib/lock'; import { type Platform } from '../config/mcpConfig'; export interface InitOptions { cwd: string; agents: AgentId[]; force: boolean; copy: boolean; dryRun: boolean; skills: boolean; /** Override the `source` from skills.yaml. `null` = use the configured value. */ skillsSourceOverride: string | null; skillsGlobal: boolean; /** Emit a single JSON object on stdout instead of prose lines. */ json: boolean; /** Materialize the vendored mlua-lsp runtime for hook/runtime reuse. Default: true. */ mluaLsp: boolean; /** Create AGENTS.md and per-agent links. Default: true. */ instruction: boolean; /** Create .claude/settings.json and copy hook scripts. Default: true. */ hooks: boolean; /** Force non-interactive: skip prompts, use flags + defaults as-is. */ silent: boolean; /** Override platform detection — kept for symmetry with other commands. */ platform?: Platform; } export declare function parseInitArgs(args: string[]): InitOptions | { help: true; }; export declare function printInitHelp(): void; export interface InitResult { created: string[]; /** Per-agent files written as `@AGENTS.md` includes (was `linked` when these were symlinks). */ included: string[]; copied: string[]; skipped: { path: string; reason: string; }[]; noop: string[]; /** Action taken for .claude/settings.json */ claudeSettingsAction: 'created' | 'skipped' | 'noop' | 'dry-run'; /** Per-file hook outcomes keyed by relative path (from cwd). Covers per-agent * scripts AND per-agent generated config files. Empty when --no-hooks or no * template dir. */ hooks: Record; hookWarnings: string[]; removedHookTopics: string[]; removedHookFiles: string[]; keptUserOwnedHookFiles: string[]; repoMetadata: RepoMetadataResult; /** Lock packageVersion drift between the workspace and the running mswai binary. * When `drifted` is true, init promoted `force=true` for template-driven files * (per-agent instruction, hook scripts, hook configs) — AGENTS.md body stays * protected by the existence-only check in installInstruction. */ lockVersionDrift: LockVersionDrift; } export declare function runInit(opts: InitOptions): Promise; export declare function initCommand(args: string[]): Promise;