#!/usr/bin/env node import { type BootstrapWriteBoundary } from "../io/bootstrap-write-boundary.js"; export { formatInitNonInteractiveInterviewMessage, formatInitResult } from "./init-output.js"; export type InitOptions = { readonly bootstrapPersonaState?: { readonly kind: "preinitialized"; readonly manifestProjectRealPath?: string; }; readonly dryRun?: boolean; readonly onAfterCommitFile?: (relativePath: string) => void; readonly onBeforeCommit?: () => void; readonly packageRoot?: string; readonly projectDir?: string; }; export type InitDecision = "apply" | "no-op" | "dry-run"; export type InitResult = { readonly projectDir: string; readonly packageRoot: string; readonly pluginPath: string; readonly installed: readonly string[]; readonly backups: readonly string[]; readonly evidenceCopied: false; readonly decision: InitDecision; readonly changed: readonly string[]; readonly conflicts: readonly string[]; }; export type FreshBootstrapInitResult = { readonly boundary: BootstrapWriteBoundary; readonly result: InitResult; }; export declare function initUsage(invocationName: string): string; export declare function initializePersonaHarness(options?: InitOptions): InitResult; export declare function initializeFreshBootstrapPersonaHarness(options?: InitOptions): FreshBootstrapInitResult; export declare function runInitCommand(args?: readonly string[], options?: InitOptions): { readonly status: number; readonly stdout: string; readonly stderr: string; };