(listener: () => void)
| 115 | } |
| 116 | |
| 117 | export function subscribeUploadState(listener: () => void): () => void { |
| 118 | uploadStateListeners.add(listener); |
| 119 | return () => uploadStateListeners.delete(listener); |
| 120 | } |
| 121 | |
| 122 | export function getUploadState(): UploadProgressState { |
| 123 | return uploadState; |