UNPKG

arcstrum-sdk

Version:

Arcstrum SDK for authentication and database management

25 lines (24 loc) 603 B
interface MediaClientOptions { userId: string; token?: string; apiBase?: string; } export declare class ArcstrumMediaClient { private userId; private token?; private apiBase; constructor({ userId, token, apiBase }: MediaClientOptions); private headers; private post; private get; uploadFile(file: File): Promise<string>; listFiles(): Promise<MediaFile[]>; getFileUrl(filename: string): string; deleteFile(filename: string): Promise<void>; } export interface MediaFile { filename: string; url: string; uploadedAt?: string; } export {};