/** * Shared version utilities for AgentFactory CLI commands. * * Provides current version detection and npm update checking with * file-based caching to avoid excessive network requests. */ /** * Read the current package version from the CLI's package.json. */ export declare function getVersion(): string; export interface UpdateCheckResult { currentVersion: string; latestVersion: string; updateAvailable: boolean; } /** * Check whether a newer version is available on npm. * * Uses a file-based cache (4-hour TTL) to avoid hitting the registry * on every CLI invocation. Returns null if the check is skipped or fails. * * Disabled when: * - `AF_NO_UPDATE_CHECK=1` env var is set * - `--no-update-check` was passed * - Current version is 'unknown' */ export declare function checkForUpdate(opts?: { noUpdateCheck?: boolean; }): Promise; /** * Print an update notification to stderr if a newer version is available. * Designed to be non-intrusive — just a single line after the startup banner. */ export declare function printUpdateNotification(result: UpdateCheckResult | null): void; //# sourceMappingURL=version.d.ts.map