import type { ComponentType } from "react"; import type { Decorator, GenericComponent, GenericHook } from "../types.js"; type Listener = () => void; export declare class CompositionStore { private scopes; private version; private listeners; register(component: ComponentType, hocs: Decorator[], scope?: string, inherit?: boolean, silent?: boolean, replaces?: Decorator[]): () => void; unregister(component: ComponentType, hocs: Decorator[], scope?: string): void; getComponent(component: ComponentType, scope?: string[]): GenericComponent | GenericHook | undefined; /** * Bump version and notify listeners without changing store state. * Used after a render-phase atomic swap (silent) to inform subscribers * that the swap has settled and they should re-render with the final state. */ notify(): void; subscribe: (listener: Listener) => (() => void); getSnapshot: () => number; private notifyListeners; } export {};