<?php
/**
 * Design service interface for PDFDraft.
 *
 * @package PDFDraft
 */

namespace PDFDraft\Contracts\Services;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Design service interface.
 */
interface DesignServiceInterface {
	/**
	 * Get design by ID.
	 *
	 * @param int $design_id Design ID.
	 * @return array|null Design data or null if not found.
	 */
	public function getById( int $design_id ): ?array;

	/**
	 * Get design by slug.
	 *
	 * @param string $slug Design slug.
	 * @return array|null Design data or null if not found.
	 */
	public function getBySlug( string $slug ): ?array;
}
