export default class Stopwatch { private currentTime; /** * Resets and starts the stopwatch. */ start(): void; /** * Stops the stopwatch and returns the milliseconds. * @param toString */ stop(toString: false): number; /** * Stops the stopwatch and returns a formatted string with the result. * @param toString */ stop(toString: true): string; }