import { Spinner } from '../types'; /** * Manage setInterval calls related to a spinner. */ export interface SpinnerLoop { start: (callback: (frame: string) => void) => void; stop: () => void; currentFrameIndex: () => number; } /** * Returns an object capable of managing setInterval calls related to a spinner. * @remarks This implementation was based on code from [spinnies](https://github.com/jcarpanelli/spinnies) (MIT). */ export declare function createSpinnerLoop(spinner: Spinner): SpinnerLoop; export default createSpinnerLoop;