import type { SnapshotSelector } from "../vanilla/index.js"; export interface SnapshotOptions { /** * Whether to notify updates synchronously, default is false, which means updates are batched asynchronously to improve performance. * * In some scenarios (e.g., using Chinese input method in a text box), it is necessary to immediately obtain the latest state, in which case this can be set to true. * * @defaultValue false */ sync?: boolean; /** * Custom equality function to compare the previous and next state slices. * * @defaultValue Object.is */ isEqual?: (a: StateSlice, b: StateSlice) => boolean; } /** * Returns a snapshot of the store state. * * @since 0.2.0 */ export declare function useSnapshot(state: State): State; export declare function useSnapshot(state: State, options: SnapshotOptions): State; export declare function useSnapshot(state: State, selector: SnapshotSelector): StateSlice; export declare function useSnapshot(state: State, selector: undefined, options: SnapshotOptions): State; export declare function useSnapshot(state: State, selector?: SnapshotSelector, options?: SnapshotOptions): StateSlice; //# sourceMappingURL=use-snapshot.d.ts.map