export declare class FastAPI { /** The options that were set. */ readonly options: FastAPIOptions; /** * Initiates the FastAPI class. * @param options */ constructor(options: FastAPIOptions); /** * Function to run speed test. * @returns Promise */ runTest(): Promise; /** * Function to lauch Puppeteer browser. * This function will pick correct ```executablePath``` for Linux systems based on ARM processors * @returns Puppeteer browser */ private launchBrowser; } export declare enum SpeedUnits { Bps = "Bps", KBps = "KBps", MBps = "MBps", GBps = "GBps", bps = "bps", Kbps = "Kbps", Mbps = "Mbps", Gbps = "Gbps" } export interface SpeedTestResult { /** Network ping. */ ping?: number; /** Network download speed. */ downloadSpeed: number; /** Network upload speed. */ uploadSpeed?: number; /** Network ping unit. */ pingUnit?: string; /** Network download speed unit. */ downloadUnit: string; /** Network upload speed unit. */ uploadUnit?: string; /** Location(s) of test server(s). */ servers: string[]; } export interface FastAPIOptions { /** To wait for the upload speed result. */ measureUpload?: boolean; /** The resulting unit of upload speed. */ uploadUnit?: SpeedUnits; /** The resulting unit of download speed. */ downloadUnit?: SpeedUnits; /** Limit how long the speed test can run. */ timeout?: number; /** Path to the Chrome startup file. You can use it if Puppeteer failed to start. */ executablePath?: string; }