UNPKG

@reliverse/rse

Version:

@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power

21 lines (20 loc) 550 B
import type { Buffer } from "buffer"; export interface UploadFile { name: string; data: Buffer; type: string; } export interface UploadResult { url: string; size: number; name: string; uuid?: string; key?: string; } export declare function uploadToProvider(files: UploadFile[], provider?: string): Promise<UploadResult[]>; export declare function getMimeType(filePath: string): string; export declare function readFilesFromPaths(filePaths: string[]): Promise<{ name: string; data: any; type: string; }[]>;