export interface UseIntervalAction extends UseCounterReturnsAction, Pausable {
/**
* 重置计数器
*/
reset: (count?: number) => void
}
export type UseIntervalWithControlsReturns = [
/**
* 当前计数
*/
count: number,
/**
* 计数器操作
*/
UseIntervalAction,
]
export type UseIntervalReturns<Controls extends boolean> = Controls extends true ? UseIntervalWithControlsReturns : number