/** * Meshy API client with authentication and error handling */ import { GetTaskResponse } from "../types.js"; export declare class MeshyClient { private client; private apiKey; constructor(apiKey: string); /** * Make a GET request with retry logic */ get(endpoint: string, params?: Record): Promise; /** * Make a POST request with retry logic */ post(endpoint: string, data?: Record): Promise; /** * Make a DELETE request with retry logic */ delete(endpoint: string): Promise; /** * Make a request with exponential backoff retry logic */ private requestWithRetry; /** * Sleep for specified milliseconds */ private sleep; /** * Validate API key by making a test request */ validateApiKey(): Promise; } /** * Try to fetch a task by ID from all known API endpoints. * Tries endpoints in priority order until one succeeds. * Useful when the task type is unknown. */ export declare function fetchTaskByIdFromKnownEndpoints(client: MeshyClient, taskId: string): Promise<{ task: GetTaskResponse; endpoint: string; } | null>; /** * Fetch a task, trying the given endpoint first, then falling back to auto-inference. * Returns the task data and the resolved endpoint. */ export declare function getTaskWithAutoInference(client: MeshyClient, taskId: string, preferredEndpoint: string): Promise<{ task: GetTaskResponse; endpoint: string; }>; /** * Create and validate Meshy client */ export declare function createMeshyClient(): Promise;