import { CounterState } from "./types";
import { Dispatch, SetStateAction } from "react";
export declare const counterStateFactory: (setState: Dispatch<SetStateAction<CounterState>>) => {
    increment: () => void;
    decrement: () => void;
    incrementBy: (val: number) => void;
    decrementBy: (val: number) => void;
    setCount: (count: CounterState["count"]) => void;
    setMin: (min: CounterState["min"]) => void;
    setMax: (max: CounterState["min"]) => void;
};
export declare const useCounterState: (initialState?: CounterState) => {
    increment: () => void;
    decrement: () => void;
    incrementBy: (val: number) => void;
    decrementBy: (val: number) => void;
    setCount: (count: CounterState["count"]) => void;
    setMin: (min: CounterState["min"]) => void;
    setMax: (max: CounterState["min"]) => void;
    count: number;
    min: number | undefined;
    max: number | undefined;
};
