//#region config.d.ts type Config = { /** Array of dependencies to include */include?: Array; /** Array of dependencies to exclude */ exclude?: Array; /** Array of package types to use */ types?: Array; /** URL to npm registry */ registry?: string; /** Minimum dependency age, e.g. 7 (days), "1w", "2d", "6h" */ cooldown?: number | string; /** Pin dependencies to semver ranges */ pin?: Record; /** File or directory paths to use */ files?: Array; /** Which modes to enable */ modes?: Array; /** Update versions and write dependency files */ update?: boolean; /** Include indirect Go dependencies */ indirect?: boolean; /** Output a JSON object */ json?: boolean; /** Print verbose output to stderr */ verbose?: boolean; /** Exit with code 2 when updates are available */ errorOnOutdated?: boolean; /** Exit with code 0 when updates are available and 2 when not */ errorOnUnchanged?: boolean; /** Force color output */ color?: boolean; /** Disable color output */ noColor?: boolean; /** Disable HTTP cache */ noCache?: boolean; /** Network request timeout in ms */ timeout?: number; /** Maximum number of parallel HTTP sockets */ sockets?: number; /** Prefer greatest over latest version */ greatest?: boolean | Array; /** Consider prerelease versions */ prerelease?: boolean | Array; /** Only use release versions, may downgrade */ release?: boolean | Array; /** Consider only up to semver-patch */ patch?: boolean | Array; /** Consider only up to semver-minor */ minor?: boolean | Array; /** Allow version downgrades when using latest version */ allowDowngrade?: boolean | Array; /** Per-package option overrides, matched by name; last matching override wins */ overrides?: Array; /** Opt-in to inheriting select fields from other tools' configs */ inherit?: { renovate?: { /** Inherit minimumReleaseAge as cooldown. Off by default. */cooldown?: boolean; }; }; }; /** Options applied to dependencies whose name matches an override's patterns. */ type Override = { /** Name patterns this override applies to (glob or RegExp). Omit to match all. */include?: Array; /** Name patterns excluded from this override */ exclude?: Array; /** Minimum dependency age, e.g. 7 (days), "1w", "2d", "6h"; 0 disables a global cooldown */ cooldown?: number | string; /** Prefer greatest over latest version */ greatest?: boolean; /** Consider prerelease versions */ prerelease?: boolean; /** Only use release versions, may downgrade */ release?: boolean; /** Consider only up to semver-patch */ patch?: boolean; /** Consider only up to semver-minor */ minor?: boolean; /** Allow version downgrades when using latest version */ allowDowngrade?: boolean; }; //#endregion //#region modes/shared.d.ts type Dep = { old: string; new: string; oldPrint?: string; newPrint?: string; oldOrig?: string; info?: string; age?: string; date?: string; }; type Deps = { [name: string]: Dep; }; type DepsByMode = { [mode: string]: Deps; }; type Output = { results: { [mode: string]: { [type: string]: Deps; }; }; message?: string; }; //#endregion //#region api.d.ts type UpdatesOptions = Config & { /** Override GitHub/Gitea API URL (for testing) */forgeapi?: string; /** Override PyPI API URL (for testing) */ pypiapi?: string; /** Override JSR API URL (for testing) */ jsrapi?: string; /** Override Go proxy URL (for testing) */ goproxy?: string; /** Override crates.io API URL (for testing) */ cargoapi?: string; /** Override Docker Hub API URL (for testing) */ dockerapi?: string; }; declare function updates(opts?: UpdatesOptions): Promise; //#endregion export { type Config, type Dep, type Deps, type DepsByMode, type Output, type Override, UpdatesOptions, updates };