Rocky_Mountain_Vending/.pnpm-store/v10/files/c0/fae9ab4e986a15f98c157fa34cff584df78140e74093a385c22da88da4dc54e0fac537bb8358f9b807c6454b286da78269fa6a4e1f010fbb08fc08a0d1b681
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

26 lines
1.4 KiB
Text

import type * as Lantern from '../types/types.js';
import { TCPConnection } from './TCPConnection.js';
export declare class ConnectionPool {
options: Required<Lantern.Simulation.Options>;
records: Lantern.NetworkRequest[];
connectionsByOrigin: Map<string, TCPConnection[]>;
connectionsByRequest: Map<Lantern.NetworkRequest, TCPConnection>;
_connectionsInUse: Set<TCPConnection>;
connectionReusedByRequestId: Map<string, boolean>;
constructor(records: Lantern.NetworkRequest[], options: Required<Lantern.Simulation.Options>);
connectionsInUse(): TCPConnection[];
initializeConnections(): void;
findAvailableConnectionWithLargestCongestionWindow(connections: TCPConnection[]): TCPConnection | null;
/**
* This method finds an available connection to the origin specified by the network request or null
* if no connection was available. If returned, connection will not be available for other network
* records until release is called.
*/
acquire(request: Lantern.NetworkRequest): TCPConnection | null;
/**
* Return the connection currently being used to fetch a request. If no connection
* currently being used for this request, an error will be thrown.
*/
acquireActiveConnectionFromRequest(request: Lantern.NetworkRequest): TCPConnection;
release(request: Lantern.NetworkRequest): void;
}