import { PluginEntry, Plugin } from '@animespace/core';

declare module '@animespace/core' {
  interface AnimePlan {
    bgm: string;
  }

  interface LocalVideoSource {
    magnet?: string;
  }
}

type DownloadProviders = 'webtorrent' | 'aria2' | 'qbittorrent';

interface AnimeGardenOptions extends PluginEntry {
    api?: string;
    provider?: DownloadProviders;
}
declare function AnimeGarden(options: AnimeGardenOptions): Plugin;

export { AnimeGarden };
export type { AnimeGardenOptions };
