import type { ExistsResult, ExistsOptions } from './npm.js'; interface PurlObject { name: string; namespace?: string | undefined; qualifiers?: Record | undefined; subpath?: string | undefined; type?: string | undefined; version?: string | undefined; } /** * Check if a NuGet package exists in NuGet.org. * * Queries the NuGet V3 API to verify package existence and retrieve * the latest version. * * @param name - Package name (e.g., 'Newtonsoft.Json') * @param version - Optional version to validate (e.g., '13.0.3') * @param options - Optional configuration including cache * @returns Promise resolving to existence result with latest version * * @example * ```typescript * // Check if package exists * const result = await nugetExists('Newtonsoft.Json') * // -> { exists: true, latestVersion: '13.0.3' } * * // Validate specific version * const result = await nugetExists('Newtonsoft.Json', '13.0.3') * // -> { exists: true, latestVersion: '13.0.3' } * * // Non-existent package * const result = await nugetExists('fake-package-xyz') * // -> { exists: false, error: 'Package not found' } * ``` */ export declare function nugetExists(name: string, version?: string, options?: ExistsOptions): Promise; /** * Validate NuGet package URL. * NuGet packages must not have a namespace. Name must not contain injection characters. */ export declare function validate(purl: PurlObject, throws: boolean): boolean; export {};