import { PathLike } from 'fs'; import { IconifyInfo, IconifyJSON } from '@iconify/types'; /** * This file is part of the iconify.design libraries. * * (c) Vjacheslav Trushkin * * @license MIT * * For the full copyright and license information, please view the license.txt * file that is available in this file's directory. */ /** * Collection info map */ type IconifyMetaDataCollection = { [prefix: string]: IconifyInfo; }; /** * Locate JSON file * * @param {string} name Collection name * @returns {string} Path to collection json file */ declare const locate: (name: string) => PathLike; /** * Loads a collection. * * @param {PathLike} path The path to locate the `json` collection file. * @return {Promise} */ declare const loadCollection: (path: PathLike) => Promise; /** * Get a collection. * * @param {string} name The name of the collection * @return {Promise} */ declare const lookupCollection: (name: string) => Promise; /** * Get list of collections info. * * @return {Promise} */ declare const lookupCollections: () => Promise; export { IconifyMetaDataCollection, loadCollection, locate, lookupCollection, lookupCollections };