import type { FileStore, StoredFile, UploadedFile } from './FileStore'; /** * Stored in `data/textures/` as `{folder}/{sha256}.{png|jpg|webp|gif}`. A picture may be re-encoded on the * way, so `name` can be a `.png` name on a file stored as `.webp`. */ export interface UploadedTexture extends UploadedFile { width: number; height: number; } export interface StoredTexture extends StoredFile { /** 0 × 0 when the server could not read the header; such a file cannot become an asset. */ width: number; height: number; } export type TextureStore = FileStore;