UNPKG

universal-speedtest

Version:
45 lines (44 loc) 1.13 kB
import { OoklaOptions } from "./ookla.js"; export declare enum HttpMethods { GET = "GET", POST = "POST" } export declare enum DistanceUnits { mi = "mi", km = "km" } export declare enum SpeedUnits { Bps = "Bps", KBps = "KBps", MBps = "MBps", GBps = "GBps", bps = "bps", Kbps = "Kbps", Mbps = "Mbps", Gbps = "Gbps" } interface USTestOptions { /** Measure the download speed. */ measureDownload?: boolean; /** Measure the upload speed. */ measureUpload?: boolean; } interface USUnitOptions { /** The resulting unit of distance from the test servers. */ distanceUnit?: DistanceUnits; /** The resulting unit of download speed. */ downloadUnit?: SpeedUnits; /** The resulting unit of upload speed. */ uploadUnit?: SpeedUnits; } export interface USOptions { /** Display debug messages. */ debug?: boolean; /** Configure what tests will be performed. */ tests?: USTestOptions; /** Resulting units options. */ units?: USUnitOptions; /** Ookla speedtest related options. */ ooklaOptions?: OoklaOptions; } export {};