export interface Pausable { /** * Whether the instance is active, it just a Ref Getter */ isActive(): boolean; /** * Pause the instances * * @params update - Whether to trigger a re-render */ pause: (...args: [update?: boolean, ...PauseArgs]) => void; /** * Resume the instance, restart the instances if it's active * * @params update - Whether to trigger a re-render */ resume: (...args: [update?: boolean, ...ResumeArgs]) => void; } /** * A React Hook that helps to create a [Pausable](https://sheinsight.github.io/react-use/docs/features/pausable) instance. */ export declare function usePausable, ...args: [...PauseCP]) => any, ResumeC extends (ref: React.MutableRefObject, ...args: [...ResumeCP]) => any>(initialValue?: boolean, pauseCallback?: PauseC, resumeCallback?: ResumeC): Pausable;