<?php
/**
 * Maintenance Interface.
 *
 * Defines methods for plugin activation, deactivation, data deletion,
 * and hook registration for plugin lifecycle events.
 *
 * @package   Agenistrator
 * @since     1.0.0
 * @author    Alex Ruban <alex@maximum.guru>
 * @author    Maximum Software Inc <contact@maximum.software>
 * @license   GPL-3.0-only
 * @link      https://maximum.software/
 *
 * SPDX-FileCopyrightText: 2025-2026 Alex Ruban <alex@maximum.guru>
 * SPDX-FileCopyrightText: 2025-2026 Maximum Software Inc <contact@maximum.software>
 * SPDX-License-Identifier: GPL-3.0-only
 */

namespace Agenistrator;

// Direct access prevention
if ( ! defined( 'ABSPATH' ) ) {
	return;
}

/**
 * Maintenance interface.
 */
interface Maintenance {
	/**
	 * Register hooks
	 *
	 * Called during plugin initialization to register all WordPress hooks
	 * (actions and filters) for this component.
	 *
	 * @return void
	 * @since     1.0.0
	 */
	public function register_hooks();

	/**
	 * Plugin activation tasks
	 *
	 * Called when the plugin is activated. Should set up any necessary
	 * database tables, options, and default configurations.
	 *
	 * @return void
	 * @since     1.0.0
	 */
	public function activate_plugin();

	/**
	 * Plugin deactivation tasks
	 *
	 * Called when the plugin is deactivated. Should clean up any temporary
	 * data but preserve user settings and configurations.
	 *
	 * @return void
	 * @since     1.0.0
	 */
	public function deactivate_plugin();

	/**
	 * Uninstall plugin
	 *
	 * Called when the plugin is uninstalled. Should completely remove
	 * all plugin data from the database.
	 *
	 * @return void
	 * @since     1.0.0
	 */
	public function uninstall_plugin();
}
