/** A function that takes no arguments and returns no value. */ type IntervalFn = () => void; /** * A utility class for managing intervals created by `setInterval`. */ declare class SetInterval { /** An object to store interval IDs keyed by string identifiers. */ private intervalIds; /** * Starts a new interval that calls the specified function at the specified interval. * @param fn The function to call. * @param interval The interval (in milliseconds) at which to call the function. * @param key A unique string identifier for the interval. */ start(fn: IntervalFn, interval: number, key: string): void; /** * Stops the interval with the specified key. * @param key The string identifier for the interval to stop. */ clear(key: string): void; /** * Stops all intervals managed by this utility. */ clearAll(): void; /** * Gets an array of all keys currently being used to manage intervals. * @returns An array of string keys. */ listAll(): string[]; } declare const _default: SetInterval; export { _default as default };