import { ApiCaller } from '../api/api-caller'; import { PrimitiveState } from '../utils/PrimitiveState'; export interface FileWithProgress { status: 'pending' | 'uploading' | 'success' | 'error'; id: string; file: File; fileUrl?: string; progress: number; error?: string; } /** Attachments belong to their conversation, not the mounted composer. */ export declare class UploadCtx { private api; state: PrimitiveState; private controllers; constructor(api: ApiCaller); appendFiles: (files: File[]) => void; private update; private upload; cancel: (id: string) => void; reset: () => void; } //# sourceMappingURL=upload.ctx.d.ts.map