@reliverse/rse-sdk
Version:
@reliverse/rse-sdk without cli. @reliverse/rse-sdk allows you to create new plugins for @reliverse/rse CLI, interact with reliverse.org, and even extend your own CLI functionality (you may also try @reliverse/dler-sdk for this case).
21 lines (20 loc) • 550 B
TypeScript
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;
}[]>;