declare function cacheFile(): string; /** * Whether it is worth asking npm at all. * * `npx` and friends resolve the latest version on every run, so telling those * users to update is noise — the notice is for global and project-local * installs. * * Only `npm_config_user_agent` and `npm_execpath` used to be consulted, and * `bunx` sets neither. So `bunx --bun bna-ui init` — the documented way to run * this under bun — ended every scaffold with a banner telling the user to * `npm install -g bna-ui@latest`, which was both pointless and the wrong * package manager. `process.argv[1]` is the signal that actually survives: * every one of these runners executes the CLI out of a path it names. */ declare function shouldCheck(): boolean; /** `1.2.10` > `1.2.9`, without pulling in semver. */ declare function isNewer(latest: string, current: string): boolean; /** * Resolves the newest published version, or null. * * Separated from the printing so a caller can await it concurrently with the * command itself and print afterwards. */ export declare function checkForUpdate(currentVersion: string): Promise; /** Printed after the command's own output, never before it. */ export declare function reportUpdate(current: string, latest: string): void; /** Exposed for tests. */ export declare const __internals: { isNewer: typeof isNewer; shouldCheck: typeof shouldCheck; cacheFile: typeof cacheFile; }; export {};