import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { ConsoleLogService } from "@bitwarden/common/platform/services/console-log.service";
import { SearchService } from "@bitwarden/common/services/search.service";

export class PopupSearchService extends SearchService {
  constructor(
    private mainSearchService: SearchService,
    consoleLogService: ConsoleLogService,
    i18nService: I18nService
  ) {
    super(consoleLogService, i18nService);
  }

  clearIndex() {
    throw new Error("Not available.");
  }

  indexCiphers(): Promise<void> {
    throw new Error("Not available.");
  }

  getIndexForSearch() {
    return this.mainSearchService.getIndexForSearch();
  }
}
