import { ImageColor } from '@ui/lib/types/utils/imageColor'; class ImageLibrary { private images: Record = {}; public register(hash: string, image: ImageColor) { this.images[hash] = image; } public get(hash: string): ImageColor | undefined { return this.images[hash]; } public all(): Record { return this.images; } public init(images: Record): void { this.images = images; } } export const imagesLibrary = new ImageLibrary();