@incodetech/core 0.0.0-dev-20260126-4504c5b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ //#region ../infra/src/manager/Manager.d.ts
2
+ /**
3
+ * Base manager interface providing state access, subscriptions, and lifecycle control.
4
+ * @template TPublicState - The public state type exposed to consumers
5
+ */
6
+ type Manager<TPublicState> = {
7
+ /** Returns the current mapped public state */
8
+ getState(): TPublicState;
9
+ /**
10
+ * Subscribes to state changes.
11
+ * @param listener - Callback invoked on every state change
12
+ * @returns Unsubscribe function to stop receiving updates
13
+ */
14
+ subscribe(listener: (state: TPublicState) => void): () => void;
15
+ /** Stops the underlying actor and cleans up resources */
16
+ stop(): void;
17
+ };
18
+ //#endregion
19
+ export { Manager as t };