UNPKG

dood-stream-client

Version:

🚀 A feature-rich client for the DoodStream API with caching, logging, and error handling

38 lines (37 loc) 1.06 kB
import { HttpClient } from "./http-client"; import { UploadServerResponse, CloneFileResponse } from "../interfaces/api-responses"; import { CloneFileParams } from "../interfaces/api-params"; /** * 📤 Upload-related API functionality */ export declare class UploadApi { /** * 🌐 HTTP client for making requests */ private client; /** * Create a new Upload API instance * * @param client - HTTP client */ constructor(client: HttpClient); /** * 🖥️ Get upload server URL * * @returns Promise with upload server response */ getUploadServer(): Promise<UploadServerResponse>; /** * 📋 Get information about using the upload server * * @returns Object with information about uploading files */ getUploadInstructions(): Record<string, any>; /** * 🔄 Clone/copy a file * * @param params - Clone file parameters * @returns Promise with clone file response */ cloneFile(params: CloneFileParams): Promise<CloneFileResponse>; }