import { Plugin, PluginOptions, Uppy } from '@uppy/core';

export interface ProgressBarOptions extends PluginOptions {
  hideAfterFinish: boolean;
  fixed: boolean;
}

export default class ProgressBar extends Plugin {
  constructor(uppy: Uppy, opts: Partial<ProgressBarOptions>);
}

declare module '@uppy/core' {
  export interface Uppy {
    use(pluginClass: typeof ProgressBar, opts: Partial<ProgressBarOptions>): Uppy;
  }
}
