export interface StoreApi<T> {
    setState: (partial: Partial<T> | ((prev: T) => Partial<T>)) => void;
    getState: () => T;
    subscribe: (listener: () => void) => () => void;
}
export interface UseStore<T> extends StoreApi<T> {
    <S>(selector?: (state: T) => S): S;
    <S = T>(): S;
}
/**
 * 创建一个跨 React 版本兼容的 Store
 * 支持自动浅合并 (Auto Shallow Merge)
 * @param initialState 初始状态
 */
export default function createStore<T extends object>(initialState: T): UseStore<T>;
