import { Command } from 'commander'; import { resolveExplicitNpmUpdateTarget } from '../update/npm-registry.js'; import { checkForNpmVersionUpdate } from '../update/npm-version.js'; import { type LoadedManualUpdateConfig, type ManualUpdateInstallResult, type ManualUpdatePreflightResult, type ManualUpdateState } from '../update/manual-update.js'; type ManualUpdateWorkflowOptions = { versionOrRef?: string; check?: boolean; allowPrerelease?: boolean; }; type ManualUpdateReporter = { writeStdout: (message: string) => void; writeStderr: (message: string) => void; }; type ManualUpdateWorkflowOutcome = { exitCode: 0 | 1 | 2; }; /** One flat workflow boundary composed from focused production operations. */ export type ManualUpdateDependencies = { loadState: () => Promise; resolveExplicitTarget: typeof resolveExplicitNpmUpdateTarget; checkForUpdate: typeof checkForNpmVersionUpdate; runPreflight: (config: LoadedManualUpdateConfig) => Promise; applyUpdate: (config: LoadedManualUpdateConfig, version: string, log: (message: string) => void) => Promise; }; export declare function runManualUpdateWorkflow(options: ManualUpdateWorkflowOptions, deps?: ManualUpdateDependencies, reporter?: ManualUpdateReporter): Promise; export declare function registerUpdateCommand(program: Command, deps?: ManualUpdateDependencies, runtime?: { writeStdout: (message: string) => void; writeStderr: (message: string) => void; setExitCode: (code: 1 | 2) => void; }): void; export {}; //# sourceMappingURL=update.d.ts.map