import { AliasPiece } from './AliasPiece.js'; import { l as StoreRegistryKey, i as Store } from '../../ILoaderStrategy-6DjCiyDx.js'; import { Collection } from '@flowr/utilities/collection'; import '@flowr/types'; import '../utils.js'; import './PieceLocation.js'; /** * The store class which contains {@link AliasPiece}s. */ declare class AliasStore extends Store { /** * The aliases referencing to pieces. */ readonly aliases: Collection; /** * Looks up the name by the store, falling back to an alias lookup. * @param key The key to look for. */ get(key: string): T | undefined; /** * Checks whether a key is in the store, or is an alias * @param key The key to check */ has(key: string): boolean; /** * Unloads a piece given its instance or its name, and removes all the aliases. * @param name The name of the file to load. * @return Returns the piece that was unloaded. */ unload(name: string | T): Promise; /** * Inserts a piece into the store, and adds all the aliases. * @param piece The piece to be inserted into the store. * @return The inserted piece. */ insert(piece: T): Promise; } export { AliasStore };