import type { FullIconFinderConfig } from '../data/config'; import type { Events } from '../events'; import type { API } from '../api/fetch'; import type { Router } from '../route/router'; import type { CollectionsInfoStorage } from '../data/collections'; import type { Registry } from './'; import type { ConvertedCustomSets } from '../data/custom-sets'; /** * Registry data storage */ export interface RegistryDataStorage { config?: FullIconFinderConfig; events?: Events; api?: API; collections?: CollectionsInfoStorage; router?: Router; customIconSets?: ConvertedCustomSets; custom?: { [index: string]: unknown; }; } /** * Get unique id */ export declare function uniqueId(namespace: string): string; /** * Add registry to storage */ export declare function addRegistry(registry: Registry): boolean; /** * Save registry */ export declare function saveRegistry(item: Registry): void; /** * Get shared data */ export declare function getSharedData(namespace: string): RegistryDataStorage; /** * Delete registry entries */ export declare function destroyRegistry(item: Registry): void; /** * Get Registry instance for id. * * This is used to pass registry as constant string in React/Svelte, so changes in Registry instance won't trigger refresh of entire UI. */ export declare const getRegistry: (id: string) => Registry; //# sourceMappingURL=storage.d.ts.map