declare type StartAction = { type: 'start'; }; declare type SetAction = { type: 'set'; payload: number; }; declare type IncrementAction = { type: 'increment'; payload: { maxPercent: number; add: number; }; }; declare type FinishAction = { type: 'finish'; }; declare type ResetAction = { type: 'reset'; }; declare type Actions = StartAction | SetAction | IncrementAction | FinishAction | ResetAction; export declare function reducer(state: number, action: Actions): number; export interface Config { maxPercent?: number; intervalTime?: number; increment?: () => number; } export declare function usePrevious(value: T): T | undefined; export declare function useProgress(isActive: boolean, config?: Config): number; export {};