import { Game } from './index.js'; export declare class Resources> { private game; private handlePool; private handles; constructor(game: Game); private getOrCreateGlobalHandle; load: (key: Key) => Promise; resolve: (key: Key, value: Key extends keyof ResourceMap ? ResourceMap[Key] : any) => void; immediate: (key: Key) => (Key extends keyof ResourceMap ? ResourceMap[Key] : any) | null; remove: (key: keyof ResourceMap | (string & {})) => void; }