Rocky_Mountain_Vending/.pnpm-store/v10/files/56/16e0a9221d3f70d67230c29849691378382a4de16bca0c5151aa372977bd37508d6302e6d5499f6233cd7e3bdebe2ce61d8d83a0d17b39e3ec46e94d14448b
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

47 lines
1.7 KiB
Text

import type { ConnectionTiming } from './SimulationTimingMap.js';
interface DownloadOptions {
dnsResolutionTime?: number;
timeAlreadyElapsed?: number;
maximumTimeToElapse?: number;
}
interface DownloadResults {
roundTrips: number;
timeElapsed: number;
bytesDownloaded: number;
extraBytesDownloaded: number;
congestionWindow: number;
connectionTiming: ConnectionTiming;
}
declare class TCPConnection {
warmed: boolean;
ssl: boolean;
h2: boolean;
rtt: number;
throughput: number;
serverLatency: number;
_congestionWindow: number;
h2OverflowBytesDownloaded: number;
constructor(rtt: number, throughput: number, serverLatency?: number, ssl?: boolean, h2?: boolean);
static maximumSaturatedConnections(rtt: number, availableThroughput: number): number;
computeMaximumCongestionWindowInSegments(): number;
setThroughput(throughput: number): void;
setCongestionWindow(congestion: number): void;
setWarmed(warmed: boolean): void;
isH2(): boolean;
get congestionWindow(): number;
/**
* Sets the number of excess bytes that are available to this connection on future downloads, only
* applies to H2 connections.
*/
setH2OverflowBytesDownloaded(bytes: number): void;
clone(): TCPConnection;
/**
* Simulates a network download of a particular number of bytes over an optional maximum amount of time
* and returns information about the ending state.
*
* See https://hpbn.co/building-blocks-of-tcp/#three-way-handshake and
* https://hpbn.co/transport-layer-security-tls/#tls-handshake for details.
*/
simulateDownloadUntil(bytesToDownload: number, options?: DownloadOptions): DownloadResults;
}
export { TCPConnection };