//#region src/index.d.ts /** * Checks if a package is the latest version. * @param {PkgInfo} pkg - An object with package name and version. * @param {IsPackageLatestOptions} [options] - Optional timeout/retry/signal passed through to the fetch. * @returns {Promise} A promise that has the result. */ interface PkgInfo { name: string; version: string; } interface IsPackageLatestOptions { timeout?: number; retry?: number; signal?: AbortSignal; } declare function isPackageLatest(pkg: PkgInfo, options?: IsPackageLatestOptions): Promise<{ success: boolean; name: string; isLatest: boolean; currentVersion: string; latestVersion: string | null; error: string | null; }>; //#endregion export { isPackageLatest };