/** * Version tracking utilities for Nori Profiles installer * * Manages version tracking to ensure proper uninstallation of previous versions * before installing new versions. */ /** * Get the current package version by reading package.json * This works for any installation method (global npm install, local node_modules) * * @param args - Optional configuration arguments * @param args.startDir - Directory to start searching from (defaults to current file's directory) * * @returns The current package version or null if not found */ export declare const getCurrentPackageVersion: (args?: { startDir?: string | null; }) => string | null; /** * Get the installed version from .nori-config.json * Falls back to reading from deprecated .nori-installed-version file if config has no version. * Throws an error if version cannot be detected from either source. * * @param args - Configuration arguments * @param args.installDir - Installation directory * * @throws Error if version cannot be detected from config or fallback file * * @returns The installed version string */ export declare const getInstalledVersion: (args: { installDir: string; }) => Promise; /** * Check if a version supports the --agent CLI flag. * Returns false for invalid versions (fail-safe behavior). * * @param args - Configuration arguments * @param args.version - Version string to check * * @returns true if version supports --agent flag, false otherwise */ export declare const supportsAgentFlag: (args: { version: string; }) => boolean; //# sourceMappingURL=version.d.ts.map