import type { IconFinderConfig } from './data/config'; import { Registry as RegistryClass } from './registry'; import type { PartialRoute } from './route/types/routes'; import type { Router, RouterEvent } from './route/router'; import type { CollectionInfo } from './converters/info'; import type { Icon } from './misc/icon'; import type { CustomViewLoadCallback } from './views/custom'; import type { IconFinderCustomSets } from './data/custom-sets'; import { getCollectionInfo } from './data/collections'; /** * Export data for various blocks */ export { BlockType, Block, isBlockEmpty } from './blocks/types'; export { CollectionInfoBlock } from './blocks/collection-info'; export { CollectionsFilterBlock } from './blocks/collections-filter'; export { CollectionsListBlock, getCollectionsBlockCategories, getCollectionsBlockPrefixes, iterateCollectionsBlock, } from './blocks/collections-list'; export { FiltersBlock, FiltersFilter } from './blocks/filters'; export { IconsListBlock } from './blocks/icons-list'; export { PaginationBlock, showPagination, maxPage } from './blocks/pagination'; export { SearchBlock } from './blocks/search'; /** * Export various types and functions that do not depend on core instance */ export { setIconify, CoreIconifyFunctions } from './iconify'; export type { APIProviderSource } from './data/providers'; export { addProvider, getProvider, convertProviderData, listProviders, } from './data/providers'; export type { PartialRoute }; export type { RouteType, FullRoute, FullCollectionsRoute, FullCollectionRoute, FullSearchRoute, FullCustomRoute, FullEmptyRoute, PartialCollectionsRoute, PartialCollectionRoute, PartialSearchRoute, PartialCustomRoute, PartialEmptyRoute, } from './route/types/routes'; export { objectToRoute } from './route/convert'; export type { Router, RouterEvent }; export declare type Registry = RegistryClass; export type { CollectionsInfoStorage } from './data/collections'; export type { CollectionInfo }; export { getCollectionInfo }; export { getCollectionTitle } from './data/collections'; export type { IconFinderConfig }; export { customisedConfig, mergeConfig, setComponentsConfig, } from './data/config'; export type { ViewBlocks } from './views/types'; export type { CollectionsViewBlocks } from './views/collections'; export type { CollectionViewBlocks } from './views/collection'; export type { SearchViewBlocks } from './views/search'; export type { IconsList, CustomViewBlocks } from './views/custom'; export type { Icon }; export { iconToString, validateIcon, compareIcons, stringToIcon, } from './misc/icon'; export type { IconFinderCustomSets }; export { compareObjects, cloneObject } from './misc/objects'; /** * Icon Finder core parameters */ export interface IconFinderCoreParams { namespace?: string; config?: IconFinderConfig; route?: PartialRoute | null; iconSets?: IconFinderCustomSets; callback: (data: RouterEvent, core: IconFinderCore) => void; custom?: { [index: string]: (callback: CustomViewLoadCallback) => void; }; } /** * Icon Finder Core class */ export declare class IconFinderCore { protected readonly params: IconFinderCoreParams; readonly registry: Registry; readonly router: Router; readonly id: string; constructor(params: IconFinderCoreParams); /** * Get collection information */ getCollection(provider: string, prefix: string): CollectionInfo | null; /** * Event was fired by router */ _routerEvent(data: unknown): void; /** * Load data */ _loadCustomIconsEvent(customType: string, callback: CustomViewLoadCallback): void; /** * Destroy instance */ destroy(): void; } /** * Find Icon Finder Core instance for id */ export declare function getCoreInstance(id: string): IconFinderCore | undefined; //# sourceMappingURL=index.d.ts.map