export type ClassPullOptions = { limit?: number; createOnInit?: number; }; type UserGetInstance = { instance: T; unlock: () => void; }; export default class ClassPull { protected _createInstance: () => State | Promise; protected _options: ClassPullOptions; private _pull; private _waitPull; constructor(_createInstance: () => State | Promise, _options?: ClassPullOptions); private _init; private get _freeInstance(); get loadingCount(): number; get freeCount(): number; lockInstance(): Promise>; private _createLockedInstance; private _unlockedInstance; private _createUserInstance; run(callback: (instance: State) => Promise | Returns, count?: number): Promise; } export {};