<?php

namespace Fotogenic_AI;

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Studio cache invalidator — decouples compat hooks from Rest_Studio.
 * Implementations perform product-summary delete and/or latest-list version bump.
 */
interface Studio_Cache_Invalidator_Interface {

	/**
	 * Invalidate cache for a single product (summary) and bump latest list version.
	 *
	 * @param int $product_id Product (post) ID.
	 */
	public function invalidate_product( int $product_id ): void;

	/**
	 * Invalidate latest products list (bump version so list cache is refreshed).
	 */
	public function invalidate_latest_list(): void;
}
