import { type AccountInfo } from './agents.js';
import type { AgentId } from './types.js';
export interface VersionAccountEntry {
    version: string;
    info: AccountInfo;
}
export interface NewerDuplicateVersion {
    version: string;
    email: string | null;
    plan: string | null;
}
/**
 * Return installed versions newer than selectedVersion that share the same
 * account identity. This is intentionally pure so command output can share one
 * duplicate rule with tests.
 */
export declare function findNewerDuplicateVersions(entries: VersionAccountEntry[], selectedVersion: string): NewerDuplicateVersion[];
/** Collect account info for an agent and find newer duplicates of selectedVersion. */
export declare function getNewerDuplicateVersions(agentId: AgentId, selectedVersion: string): Promise<NewerDuplicateVersion[]>;
/** Format the non-interactive guidance shown by view/run when duplicates exist. */
export declare function formatNewerDuplicateNotice(agentId: AgentId, selectedVersion: string, duplicates: NewerDuplicateVersion[], selectedLabel?: string): string;
