import type * as THREE from 'three'; /** * Things every magazine drawn by one renderer can share: made the first time one asks, handed * to the rest, and freed with the last one still using them. They're kept per renderer because * three.js keeps a GPU copy of a texture or geometry, and a dispose listener on it, for each * renderer that draws it; shared across renderers, it would keep hold of every renderer that * ever drew it until the last magazine anywhere let it go. */ export declare class SharedResources { private readonly entries; /** The resource under `key`, made by `make` for the first user. Pair every call with `release`. */ acquire(key: string, make: () => T): T; /** Lets go of `key`; the last user's release frees it. */ release(key: string): void; } /** What the magazines drawn by `renderer` share. */ export declare function sharedResources(renderer: THREE.WebGLRenderer): SharedResources;