export interface ChangeItem { props: PropertyKey[]; propsPath: string; previous: unknown; current: unknown; snapshot: State; } /** * @deprecated Use `SubscribeListener` instead. Will be removed in the next major version. */ export type SubscribeCallback = SubscribeListener; export type SubscribeListener = (changes: ChangeItem, version?: number) => void; /** * Set the global default `sync` option. * * when the`sync` option is not set, this value will be used as fallback. * * set to `true` to notify subscribers in sync by default, or `false` to notify them asynchronously by default. * * @default false * * @since 0.3.0 */ export declare function setGlobalNotifyInSync(value: boolean): void; /** * Subscribe to the store's state changes. */ export declare function subscribe(proxyState: State, callback: SubscribeListener, notifyInSync?: boolean): () => void; //# sourceMappingURL=subscribe.d.cts.map