<?php

declare(strict_types=1);

namespace KimaAI\Addons;

use KimaAI\Main;
use KimaAI\Surfaces\ClassesSurface;

interface AddonInterface {

  /**
   * Called when KimaAI boots its add-ons.
   *
   * This is where the add-on should:
   *  - register its WordPress hooks/filters
   *  - fetch services from the DI container (via $classes->get(...))
   *
   * @param Main $main The main KimaAI instance.
   * @param ClassesSurface $classes Surface to access DI services.
   */
  public function register(Main $main, ClassesSurface $classes): void;
}
