import type Delegate from './Delegate'; /** * Generic Manager that orchestrates a Delegate. * * A Manager stores a delegate instance, initializes it, and notifies * listeners once the delegate is ready. It also exposes the delegate’s * optional React HOC wrapper. */ export default class Manager { protected delegate: T | null; private onInitListeners; private inited; /** Returns true once the delegate has completed initialization. */ isInited(): boolean; /** Registers a callback executed after initialization. */ addOnInitListener(listener: (...params: any[]) => void): void; /** Returns the current delegate, if any. */ getDelegate(): T | null; /** * Sets a new delegate and runs its initialization lifecycle. * All registered onInit listeners are executed once init completes. */ setDelegate(delegate: T | null): void; /** Applies the delegate’s optional React HOC wrapper. */ hoc

(Component: React.ComponentType

): React.ComponentType

; }