import type { SubscribeListener, VanillaStore } from "../../vanilla/index.cjs"; export interface WithUseSubscribeContributes { /** * Subscribes to the store state changes in React components. * * @param listener - The listener function. * @param notifyInSync - Whether to notify the listener in sync. */ useSubscribe: (listener: SubscribeListener, notifyInSync?: boolean) => void; } /** * Enhance a store with the `useSubscribe` methods. * * @param store - The store to be enhanced. * @returns The enhanced store. * * @since 0.2.0 * * @example * * ```ts * import { createVanilla, withUseSubscribe } from '@reactive-react/core' * * const store = withUseSubscribe(createVanilla({ count: 0 })) * * // In a React component * store.useSubscribe((state) => { * console.log(state.count) * }) * ``` * */ export declare function withUseSubscribe>(store: Store): Store & WithUseSubscribeContributes; //# sourceMappingURL=with-use-subscribe.d.cts.map