import type { RuleFnResult, RuleViolationLocation } from '@thymian/core'; export type ByteRange = { kind: 'int'; first: number; last?: number; } | { kind: 'suffix'; length: number; }; /** * Parses a `Range` header's `bytes` range set. Returns `undefined` when the * header is not one: another range unit, any range spec that RFC 9110 * §14.1.2 does not allow, or more than one field line — `Range` is a single * `ranges-specifier` (§14.2), not a list, so field lines do not combine. */ export declare function parseRangeHeader(header: string | string[]): ByteRange[] | undefined; export declare function intRanges(ranges: ByteRange[]): Extract[]; export declare function formatByteRange(range: ByteRange): string; export declare function unparsableRangeHeader(ruleName: string, location: RuleViolationLocation, header: string | string[]): RuleFnResult; //# sourceMappingURL=utils.d.ts.map