/** * Pool for managing instance IDs efficiently * Reuses released IDs to minimize fragmentation */ export declare class InstancePool { private activeInstances; private freeIds; private nextId; private maxInstances; constructor(maxInstances: number); /** * Acquire a new instance ID * @returns Instance ID or null if pool is exhausted */ acquire(): number | null; /** * Release an instance ID back to the pool * @param id - Instance ID to release */ release(id: number): void; /** * Get pool statistics */ getStats(): { active: number; total: number; max: number; }; /** * Get highest active instance ID. * Returns -1 when no instances are active. */ getHighestActiveId(): number; /** * Clear all instances from the pool */ clear(): void; /** * Check if the pool has available capacity */ hasCapacity(): boolean; /** * Get the number of active instances */ getActiveCount(): number; } //# sourceMappingURL=InstancePool.d.ts.map