/** * Pure `InitOptions` construction from `monomind init` flags. Split out of * init-action.ts so both the interactive action and the machine-readable * `--json` workspace-init path (commands/init-workspace.ts) compute options * from the same flags — a caller must not see `--minimal`/`--target`/etc. * behave differently just because it also passed `--json`. * * @module @monomind/cli/init/resolve-options */ import type { CommandContext } from '../types.js'; import { type DetectedPlatform, type PlatformChoice } from './detect-platforms.js'; import { type InitOptions } from './index.js'; export type ResolveInitOptionsResult = { ok: true; options: InitOptions; platforms: PlatformChoice; } | { ok: false; message: string; }; /** * Builds `InitOptions` for `targetDir` from `ctx.flags`. The only I/O is the * read-only platform detection (`detect`), used when no flag names the * platforms (#420). */ export declare function resolveInitOptions(ctx: CommandContext, targetDir: string, detect?: () => DetectedPlatform[]): ResolveInitOptionsResult; //# sourceMappingURL=resolve-options.d.ts.map