1 | declare module '@ember/-internals/glimmer/lib/utils/managers' {
|
2 | import type { InternalOwner } from '@ember/-internals/owner';
|
3 | import type { ComponentManager } from '@glimmer/interfaces';
|
4 | export { modifierCapabilities, componentCapabilities } from '@glimmer/manager';
|
5 | /**
|
6 | Associate a class with a component manager (an object that is responsible for
|
7 | coordinating the lifecycle events that occurs when invoking, rendering and
|
8 | re-rendering a component).
|
9 |
|
10 | @method setComponentManager
|
11 | @param {Function} factory a function to create the owner for an object
|
12 | @param {Object} obj the object to associate with the componetn manager
|
13 | @return {Object} the same object passed in
|
14 | @public
|
15 | */
|
16 | export function setComponentManager<T extends object>(
|
17 | manager: (owner: InternalOwner) => ComponentManager<unknown>,
|
18 | obj: T
|
19 | ): T;
|
20 | }
|