import { SetStateAction } from "react";
import { DispatchWithOptions } from "../types";
interface MergeOptions {
    merge?: boolean;
}
export declare function useMergeState<S>(initialState: S | (() => S), options?: MergeOptions): [S, DispatchWithOptions<SetStateAction<S>, MergeOptions>];
export declare function useMergeState<S = undefined>(): [
    S | undefined,
    DispatchWithOptions<SetStateAction<S | undefined>, MergeOptions>
];
export {};
