export * from "./types.js";
export * from "./livsmedelsverket.js";
export * from "./openFoodFacts.js";
export * from "./health.js";

import { ConnectorRegistry } from "./types.js";
import { LivsmedelsverketConnector } from "./livsmedelsverket.js";
import { OpenFoodFactsConnector } from "./openFoodFacts.js";
import { AppleHealthConnector, HealthConnectConnector } from "./health.js";

/**
 * Standardregistret. Framtida connectors (butiker, smarta kylskåp, ugnar,
 * vågar – spec §60) registreras här NÄR laglig åtkomst och avtal finns,
 * aldrig före (spec §43: ingen reverse engineering som kärnfunktion).
 */
export function createDefaultRegistry(): ConnectorRegistry {
  const registry = new ConnectorRegistry();
  registry.register(new LivsmedelsverketConnector());
  registry.register(new OpenFoodFactsConnector());
  registry.register(new AppleHealthConnector());
  registry.register(new HealthConnectConnector());
  return registry;
}
