import { IHookStateInitAction, IHookStateSetAction } from './misc/hookState'; export interface CounterActions { inc: (delta?: number) => void; dec: (delta?: number) => void; get: () => number; set: (value: IHookStateSetAction) => void; reset: (value?: IHookStateSetAction) => void; } export default function useCounter(initialValue?: IHookStateInitAction, max?: number | null, min?: number | null): [number, CounterActions];