<?php

/**
 * FastCache - Performs several front-end optimizations for fast downloads
 *
 * @package   FastCache
 * @author    Host.it <info@host.it>
 * @copyright Copyright (c) 2025-2026 FastCache
 * @license   GNU/GPLv3, or later. See LICENSE file
 *
 * If LICENSE file missing, see <http://www.gnu.org/licenses/>.
 */

namespace FastCache\Core\Interfaces;

defined( '_FASTCACHE_EXEC' ) or die( 'Restricted access' );

interface Utility
{
	/**
	 *
	 * @param   string  $text
	 */
	public static function translate( $text );

	/**
	 *
	 */
	public static function unixCurrentDate();

	/**
	 *
	 * @param   string  $message
	 * @param   string  $priority
	 * @param           $filename
	 */
	public static function log( $message, $priority, $filename );

	/**
	 *
	 */
	public static function lnEnd();

	/**
	 *
	 */
	public static function tab();

	/**
	 *
	 * @param   string  $value
	 */
	public static function encrypt( $value );

	/**
	 *
	 * @param   string  $value
	 */
	public static function decrypt( $value );

	/**
	 *
	 * @param   string  $value
	 * @param   string  $default
	 * @param   string  $filter
	 * @param   string  $method
	 */
	public static function get( $value, $default = '', $filter = 'cmd', $method = 'request' );

	/**
	 *
	 */
	public static function getLogsPath();

	/**
	 *
	 */
	public static function menuId();

	/**
	 * Returns true if current user is not logged in
	 *
	 * @return boolean
	 */
	public static function isGuest();

	/**
	 *
	 * @param $headers
	 */
	public static function sendHeaders( $headers );

	/**
	 *
	 * @param $userAgent
	 */
	public static function userAgent( $userAgent );

	/**
	 * Should return the attribute used to store content values for popover that the version of Bootstrap
	 * is using
	 *
	 * @return string
	 */
	public static function bsTooltipContentAttribute();

	public static function isPageCacheEnabled( Settings $oParams );
}
