import { type RangesSpecifier } from "./deps.js"; /** Range API. */ export interface Range { /** Corresponding range unit. */ readonly rangeUnit: string; /** Return response from range request context. */ respond(response: Response, context: RangesSpecifier): Response | Promise; } export type RangeUnit = "bytes" | "none" | string & {};