import * as React from 'react'; import type { FileSection, FileType } from './fileType'; export type UploadPhase = 'converting' | 'uploading'; export interface UploadTask { id: string; name: string; fileType: FileType; phase: UploadPhase; label: string; progress: number | null; } type Renderer = (task: UploadTask) => React.ReactElement; export declare function subscribe(listener: () => void): () => void; export declare function getSnapshot(): UploadTask[]; /** Installed by UploadProgressBar so the store never has to import JSX. */ export declare function setToastRenderer(render: Renderer | null): void; export declare function beginTask(task: Omit): string; export declare function updateTask(id: string, patch: Partial>): void; export declare function endTask(id: string): void; export declare function useUploadTasks(section?: FileSection): UploadTask[]; export {}; //# sourceMappingURL=uploadProgress.d.ts.map