@matechat/core
Version:
前端智能化场景解决方案UI库,轻松构建你的AI应用。
12 lines (11 loc) • 368 B
TypeScript
import type { FileItem, UploadOptions } from './attachment-types';
interface UploaderOptions {
file: File;
fileItem: FileItem;
options: UploadOptions;
onProgress: (percentage: number) => void;
onSuccess: (response: unknown) => void;
onError: (error: unknown) => void;
}
export declare function upload(config: UploaderOptions): void;
export {};