@loadsmart/miranda-wc
Version:
Miranda Web Components component library
16 lines (15 loc) • 635 B
TypeScript
import type { ReactiveController } from 'lit';
/**
* This class is used to manage the context of a controller.
* It is specially useful when we have nested components that need to handle
* events via the same controller.
*/
export declare class ControllerContextManager {
private static instances;
private controllerStack;
static getInstance(controllerType: string): ControllerContextManager;
pushController(controller: ReactiveController): void;
getActiveController(): ReactiveController | null;
popController(controller: ReactiveController): void;
isActive(controller: ReactiveController): boolean;
}