/** * Auto state collector — tracks Signal and Collection instances * for automatic state assembly in PrefabApp. * * `signal()` and `collection()` factories push entries here. * `PrefabApp` drains the collector at construction time, so each * app captures exactly the state created before it. */ export interface StateEntry { toState(): Record; } /** @internal Push a signal or collection for auto-collection. */ export declare function trackState(entry: StateEntry): void; /** * @internal Drain all pending state entries and return merged state. * Clears the pending list. Called by PrefabApp constructor. */ export declare function drainAutoState(): Record; /** * @internal Reset the collector (for tests). */ export declare function resetAutoState(): void; //# sourceMappingURL=state-collector.d.ts.map