export const CDN_ORIGIN: string; export type FakeCdnRequest = { path: string; range: string | null; referer: string | null; origin: string | null; ua: string | null; status: number; bytes: number; // The connection was cut while (or before) this request was answered. dropped: boolean; at: number; }; export type FakeRangedCdn = { base: string; requests: FakeCdnRequest[]; url(path: string): string; fetch(url: string | URL, init?: RequestInit): Promise; refuseAfterBytes(n: number): void; unlocks: number; unlock(): void; lock(): void; allowAgain(): void; close(): Promise; }; export function startFakeRangedCdn(opts?: { files?: Record; refuseAfterBytes?: number; refuseStatus?: number; corruptOnce?: { path: string; buf: Buffer; from: number; to: number }; ignoreRange?: boolean; allowUnranged?: boolean; requireUnlock?: boolean; unlockBytes?: number; dropAfterBytes?: number; drops?: number; dropGapBytes?: number; }): Promise;