type InstallContext = "npx" | "global" | "local"; /** * Project #246: classify how this CLI binary was launched, so the self-announcing * shim only fires for a stale GLOBAL install (never for the npx/plugin path, which * is the desired flow, nor for local dev). Pure + injectable for testing. * - npx (incl. the plugin wrapper): path lives under npm's `_npx` cache. * - global: under a `node_modules` dir OUTSIDE the cwd (a global `npm i -g`). * - local: dev checkout / a project-local dependency (under the cwd) -> stay quiet. */ export declare function classifyInstallContext(selfPath: string, cwd: string): InstallContext; export declare function getCurrentVersion(): string; export declare function printUpdateBanner(): void; export declare function printPluginHealthPreflight(): void; /** * Project #246 self-announcing shim: when the user runs a stale GLOBAL `@graphit/cli` * directly (the plugin's PATH wrapper never shadows their interactive shell), tell * them the plugin now delivers the CLI via npx and offer to uninstall the global. * Throttled ~once/day. Never re-execs, so there is no recursion; it only fires for * the "global" context, never the npx/plugin path. Returns true if it announced. */ export declare function printMigrationNoticeIfGlobal(): boolean; export declare function fireBackgroundCheck(): void; export {};