import { type TransportControlV2 } from './control-v2.mts'; export interface PresignedCoverageUrls { lcovPut: string; lcovGet: string; manifestPut: string; manifestGet: string; } export interface PresignedBlobUrls { put: string; get: string; } interface TransportControlBase { readonly version: 1; readonly repository: string; readonly revision: string; readonly run: { readonly id: string; readonly controlAttempt: number; }; } export interface PresignedTransportControl extends TransportControlBase { readonly mode: 'presigned'; readonly expiresAt: string; readonly coverage: Record; readonly blobs: Record; } export interface FallbackOnlyTransportControl extends TransportControlBase { readonly mode: 'fallback-only'; readonly reason: string; } export type TransportControl = PresignedTransportControl | FallbackOnlyTransportControl | TransportControlV2; export interface ExpectedTransportIdentity { readonly repository: string; readonly revision: string; readonly runId: string; readonly currentAttempt: number; } export interface RequestOptions { readonly retryDelayMs?: number; readonly timeoutMs?: number; readonly maxBodyBytes?: number; readonly maxMemberBytes?: number; readonly log?: (line: string) => void; } export declare function parseTransportControl(raw: unknown): TransportControl; export declare function writeTransportControl(path: string, control: TransportControl): void; export declare function readTransportControl(path: string, expected?: ExpectedTransportIdentity): TransportControl; export {};