/**
 * olam world upgrade [<slug>] [--all] [--dry-run] — Refresh the CLI version
 * pin in <world>/.olam/world.yaml (Phase D, D4).
 *
 * Subcommand of `olam world`. Uses the same stampVersionPin() helper as D3's
 * version check. Idempotent: already-current pins are no-ops.
 */
import type { Command } from 'commander';
import type { WorldMetadata } from '@olam/core/src/world/types.js';
type StampFn = (worldPath: string, version?: string) => boolean;
type GetWorldsFn = () => WorldMetadata[];
type GetWorldFn = (id: string) => WorldMetadata | undefined;
export interface UpgradeResult {
    readonly worldId: string;
    readonly stamped: boolean;
    readonly dryRun: boolean;
}
/**
 * Upgrade logic, injectable for testing.
 * Returns a list of results (one per world processed).
 */
export declare function doWorldUpgrade(opts: {
    slug?: string;
    all?: boolean;
    dryRun?: boolean;
    version?: string;
    getWorlds: GetWorldsFn;
    getWorld: GetWorldFn;
    stampPin?: StampFn;
}): Promise<UpgradeResult[]>;
export declare function registerWorldUpgrade(program: Command): void;
export {};
//# sourceMappingURL=world-upgrade.d.ts.map