/** * Type stub for Pterodactyl's internal @/api/http module. * This file exists ONLY for IDE type resolution in the standalone addon repo. * When installed into Pterodactyl Panel, the real module is used from the panel's src. * * @author Ball Studios */ export interface ApiResponse { data: T; status: number; statusText: string; headers: Record; } /** Minimal Axios-compatible interface sufficient for IDE resolution. */ interface HttpClient { get(url: string, config?: object): Promise>; post(url: string, data?: unknown, config?: object): Promise>; put(url: string, data?: unknown, config?: object): Promise>; patch(url: string, data?: unknown, config?: object): Promise>; delete(url: string, config?: object): Promise>; } declare const http: HttpClient; export default http;