/** * Wrapper around "fetch" where an optional timeout can be specified to cancel * requests if they take to long. * @param resource * URI of the resource to be called. * @param options * Fetch options for the request. * @returns * */ export declare function fetchWithTimeout(resource: string | URL, options?: RequestInit, timeout?: number): Promise; export declare function clamp(v: number, min: number, max: number): number; export declare function sleep(ms: number): Promise;