import { Decoder } from '@colyseus/schema'; import { SchemaCallbackProxy } from './spoon/get-decoder-state-callbacks'; /** * Enhanced SchemaCallbackProxy that automatically manages cache cleanup and destructor registration */ export type ManagedCallbackProxy = SchemaCallbackProxy & { /** * Cleanup callbacks for a container value * @param value The container value to cleanup */ cleanup(value: unknown): void; }; /** * Creates a managed callback proxy that handles cache lifecycle and automatic destructor registration * @param callbackProxy The underlying SchemaCallbackProxy to wrap * @returns A ManagedCallbackProxy with automatic cleanup and registration */ export declare function createManagedCallbackProxy(decoder: Decoder): ManagedCallbackProxy; //# sourceMappingURL=managed-callback-proxy.d.ts.map