import type { RegistryServer } from './types.js';

export abstract class RegistrySource {
  abstract readonly name: string;

  abstract search(query: string, limit: number): Promise<RegistryServer[]>;

  protected abstract normalizeResult(raw: unknown): RegistryServer;
}
