/**
 * Fetch the last publish date for an npm package.
 * GET https://registry.npmjs.org/${pkg}
 * Extracts time.modified field (ISO date string).
 * Returns null on any error (network, timeout, parse, missing field).
 */
export declare function fetchNpmLastPublish(pkg: string): Promise<string | null>;
/**
 * Determine if a package is abandoned based on its last publish date.
 * A package is considered abandoned if its last publish is older than
 * `thresholdYears` years (default: 2).
 * Returns false when lastPublish is null (cannot determine).
 */
export declare function isAbandonedByDate(lastPublish: string | null, thresholdYears?: number): boolean;
/**
 * Check if a package is abandoned by fetching its last publish date from the registry
 * and evaluating it against the threshold.
 * Currently only npm is supported with live registry calls.
 * PyPI and crates.io return { abandoned: false, lastPublish: null } as stubs
 * (their registry APIs require different endpoints/authentication).
 */
export declare function checkAbandonmentViaRegistry(pkg: string, ecosystem: 'npm' | 'pypi' | 'crates'): Promise<{
    abandoned: boolean;
    lastPublish: string | null;
}>;
//# sourceMappingURL=abandonment-registry.d.ts.map