import type { Body, Meta, UppyFile } from '@uppy/utils'; import type { _UppyEventMap, Uppy, UppyEventMap } from './Uppy.js'; /** * Create a wrapper around an event emitter with a `remove` method to remove * all events that were added using the wrapped emitter. */ export default class EventManager { #private; constructor(uppy: Uppy); on>(event: K, fn: _UppyEventMap[K]): Uppy; remove(): void; onFilePause(fileID: UppyFile['id'], cb: (isPaused: boolean) => void): void; onFileRemove(fileID: UppyFile['id'], cb: (isPaused: UppyFile['id']) => void): void; onPause(fileID: UppyFile['id'], cb: (isPaused: boolean) => void): void; onRetry(fileID: UppyFile['id'], cb: () => void): void; onRetryAll(fileID: UppyFile['id'], cb: () => void): void; onPauseAll(fileID: UppyFile['id'], cb: () => void): void; onCancelAll(fileID: UppyFile['id'], eventHandler: UppyEventMap['cancel-all']): void; onResumeAll(fileID: UppyFile['id'], cb: () => void): void; } //# sourceMappingURL=EventManager.d.ts.map