import { IconizzaJSON, IconizzaIcon } from '@iconizza/types'; /** * List of icons */ type IconRecords = Record; /** * Storage type */ interface IconStorage { provider: string; prefix: string; icons: IconRecords; missing: Set; } /** * Storage by provider and prefix */ declare const dataStorage: Record>; /** * Create new storage */ declare function newStorage(provider: string, prefix: string): IconStorage; /** * Get storage for provider and prefix */ declare function getStorage(provider: string, prefix: string): IconStorage; /** * Add icon set to storage * * Returns array of added icons */ declare function addIconSet(storage: IconStorage, data: IconizzaJSON): string[]; /** * Add icon to storage */ declare function addIconToStorage(storage: IconStorage, name: string, icon: IconizzaIcon): boolean; /** * Check if icon is available in storage */ declare function iconInStorage(storage: IconStorage, name: string): boolean; /** * List available icons */ declare function listIcons(provider?: string, prefix?: string): string[]; export { IconStorage, addIconSet, addIconToStorage, dataStorage, getStorage, iconInStorage, listIcons, newStorage };