export declare const INIT_RESPONSE_SCHEMA = "humanish.init-result.v1"; export interface InitOptions { cwd: string; dryRun?: boolean; yes?: boolean; /** Injected so a test can decide what credentials this machine appears to have. */ env?: NodeJS.ProcessEnv; } export type InitMode = "dry-run" | "applied" | "needs-confirmation"; export interface InitChange { path: string; action: "create" | "mkdir" | "update" | "skip"; target: "source" | "runtime" | "gitignore" | "package-json"; reason: string; } export interface InitResult { schema: typeof INIT_RESPONSE_SCHEMA; ok: boolean; mode: InitMode; cwd: string; changes: InitChange[]; warnings: string[]; /** * The next one or two commands, already resolved against THIS machine's credentials. Present on * an applied init; absent on a dry-run or a failure, where there is no "next" yet. */ nextSteps?: string[]; error?: { code: "HUMANISH_CONFIRMATION_REQUIRED" | "HUMANISH_INVALID_CWD" | "HUMANISH_INVALID_PACKAGE_JSON" | "HUMANISH_UNSAFE_PROJECT_PATH"; message: string; }; } export declare function runInit(options: InitOptions): Promise;