/** * Hangar Source * * Fetches plugin information from Hangar (PaperMC's official plugin repository) * API Docs: https://hangar.papermc.io/api-docs */ import type { PluginInfo, PluginSourceType, ServerPlatform } from '../types/index.js'; import { BasePluginSource } from './base.js'; export declare class HangarSource extends BasePluginSource { readonly id = "hangar"; readonly name = "Hangar"; readonly type: PluginSourceType; private static readonly API_BASE; private minecraftVersion; private hangarPlatform; setMinecraftVersion(version: string): void; /** * Select the Hangar platform whose downloads/dependencies are consulted * (W3 platform groundwork). Default is PAPER (bukkit family). Clears the * cache on change — cached PluginInfo embeds platform-specific download * URLs and MC-version ranges. */ setServerPlatform(platform: ServerPlatform): void; getPluginInfo(slug: string): Promise; searchPlugins(query: string, limit?: number): Promise; getLatestVersion(slug: string): Promise; private getVersionsForProject; private versionMatches; supportsMinecraftVersion(mcVersion: string): Promise; protected buildHeaders(additional?: Record): Record; private parseProject; } //# sourceMappingURL=hangar.d.ts.map