import type { IntRange, OtherRange, Range, RangeSet, RangeSpec, SuffixRange } from "./types.js"; /** Serializes {@link Range} into string. * * @example * ```ts * import { stringifyRange } from "https://deno.land/x/range_parser@$VERSION/stringify.ts"; * import { assertEquals } from "https://deno.land/std/testing/asserts.ts"; * * assertEquals( * stringifyRange({ * rangeUnit: "bytes", * rangeSet: [{ firstPos: 0, lastPos: 100 }, { suffixLength: 200 }], * }), * "bytes=0-100, -200", * ); * ``` * * @throws {TypeError} If the {@link Range} is invalid. */ export declare function stringifyRange(range: Range): string; /** * @deprecated Rename to {@link stringifyRange} */ export declare const stringify: typeof stringifyRange; /** * @throws {TypeError} If the {@link RangeSet} is invalid. */ export declare function stringifyRangeSet(rangeSet: RangeSet): string; /** * @throws {TypeError} If the {@link RangeSpec} is invalid. */ export declare function stringifyRangeSpec(rangeSpec: RangeSpec): string; /** * @throws {TypeError} If the {@link IntRange} is invalid. */ export declare function stringifyIntRange(intRange: IntRange): string; /** * @throws {TypeError} If the {@link OtherRange} is invalid. */ export declare function stringifyOtherRange(otherRange: OtherRange): string; /** * @throws {TypeError} If the {@link SuffixRange} is invalid. */ export declare function stringifySuffixRange(suffixRange: SuffixRange): string;