import { Minehut } from '../Minehut'; import { Icon } from './Icon'; import { IconsAvailableResponse } from './IconResponse'; /** * The Minehut Icon Manager */ export declare class IconManager { private client; private store; constructor(client: Minehut); /** * Get an icon by name or id * @param icon the name or id of the icon * @param byName whether to search by name or id * @returns {Promise} * @example const icon = await minehut.icons.get('Cake'); */ get(icon: string, byName?: boolean): Promise; /** * Fetch a list of icons by their ids * @param icons a list of icon ids to fetch * @returns {Promise} * @example const icons = await minehut.icons.fetch(['5e74719738451e006888cb08']); */ fetch(icons: string[]): Promise; /** * Fetch a list of all currently available icons in the Minehut store * @returns {Promise} * @throws {Error} If the request fails * @example const availableIcons = await minehut.icons.fetchAvailable(); */ fetchAvailable(): Promise; /** * Fetch a list of all icons in the Minehut store * @returns {Promise} * @throws {Error} If the request fails * @example const icons = await minehut.icons.fetchAll(); */ fetchAll(): Promise; }