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 CocoaPod exists in the CocoaPods trunk. * * Queries trunk.cocoapods.org API to verify pod existence and retrieve * the latest version. * * @param name - Pod name (e.g., 'Alamofire') * @param version - Optional version to validate (e.g., '5.8.1') * @param options - Optional configuration including cache * @returns Promise resolving to existence result with latest version * * @example * ```typescript * // Check if pod exists * const result = await cocoapodsExists('Alamofire') * // -> { exists: true, latestVersion: '5.8.1' } * * // Validate specific version * const result = await cocoapodsExists('Alamofire', '5.8.1') * // -> { exists: true, latestVersion: '5.8.1' } * * // Non-existent pod * const result = await cocoapodsExists('FakePod') * // -> { exists: false, error: 'Pod not found' } * ``` */ export declare function cocoapodsExists(name: string, version?: string, options?: ExistsOptions): Promise; /** * Validate CocoaPods package URL. * Name cannot contain injection or whitespace characters, plus (+) character, * or begin with a period (.). */ export declare function validate(purl: PurlObject, throws: boolean): boolean; export {};