//#region src/feature/update-check.d.ts /** * Configuration for the update check feature. */ type UpdateCheckConfig = { /** * The npm package name to check. Defaults to the program name. */ packageName?: string; /** * Registry to check for updates. * - `'npm'` — checks the npm registry (default) * - A URL string — custom registry endpoint that returns JSON with a `version` or `dist-tags.latest` field */ registry?: 'npm' | string; /** * How often to check for updates. Accepts shorthand like `'1d'`, `'12h'`, `'30m'`. * Defaults to `'1d'` (once per day). */ interval?: string; /** * Path to the cache file for storing the last check timestamp and latest version. * Defaults to `~/.config/-update-check.json`. */ cache?: string; /** * Environment variable name to disable update checks (e.g. `'MYAPP_NO_UPDATE_CHECK'`). * When set to a truthy value, update checks are skipped. * Defaults to `'_NO_UPDATE_CHECK'` (uppercased, hyphens to underscores). */ disableEnvVar?: string; }; //#endregion export { UpdateCheckConfig }; //# sourceMappingURL=update-check.d.mts.map