/** [``](https://www.rfc-editor.org/rfc/rfc9110#rule.ranges-specifier) representation. */ export type RangeSpec = IntRange | SuffixRange | OtherRange; /** [``](https://www.rfc-editor.org/rfc/rfc9110#rule.int-range) representation. */ export interface IntRange { /** [``](https://www.rfc-editor.org/rfc/rfc9110#rule.int-range) representation. The number is non-negative integer. */ readonly firstPos: number; /** [``](https://www.rfc-editor.org/rfc/rfc9110#rule.int-range) representation.The number is non-negative integer. */ readonly lastPos: number | undefined; } /** [``](https://www.rfc-editor.org/rfc/rfc9110#rule.suffix-range) representation. */ export interface SuffixRange { /** [``](https://www.rfc-editor.org/rfc/rfc9110#rule.suffix-range) representation. The number is non-negative integer. */ readonly suffixLength: number; } /** [``](https://www.rfc-editor.org/rfc/rfc9110#rule.other-range) representation. */ export type OtherRange = string; /** [``](https://www.rfc-editor.org/rfc/rfc9110#range.specifiers) representation. */ export type RangeSet = [RangeSpec, ...RangeSpec[]]; /** [``](https://www.rfc-editor.org/rfc/rfc9110#rule.ranges-specifier) representation. */ export interface RangesSpecifier { /** [``](https://www.rfc-editor.org/rfc/rfc9110#range.units) representation. */ readonly rangeUnit: string; /** [``](https://www.rfc-editor.org/rfc/rfc9110#range.specifiers) representation. */ readonly rangeSet: RangeSet; } /** [``](https://www.rfc-editor.org/rfc/rfc9110#name-range) representation. * @see [RFC 9110, 14.2. Range](https://www.rfc-editor.org/rfc/rfc9110#section-14.2) */ export type Range = RangesSpecifier;