import type { AbsolutePath } from "./types.js"; export declare function stripPrefix(path: Path): Path extends AbsolutePath ? Rest : never; /** * Translate cloud-storage URIs (`s3://`, `gs://`, `gcs://`) to HTTPS URLs. * HTTP(S) URLs are returned as-is. */ export declare function resolveUri(url: string | URL): string; export declare function fetchRange(url: string | URL, offset?: number, length?: number, opts?: RequestInit): Promise; export declare function mergeInit(storeOverrides: RequestInit, requestOverrides: RequestInit): { body?: BodyInit | null; cache?: RequestCache; credentials?: RequestCredentials; integrity?: string; keepalive?: boolean; method?: string; mode?: RequestMode; priority?: RequestPriority; redirect?: RequestRedirect; referrer?: string; referrerPolicy?: ReferrerPolicy; signal?: AbortSignal | null; window?: null; headers: {}; }; /** * Make an assertion. * * Usage * @example * ```ts * const value: boolean = Math.random() <= 0.5; * assert(value, "value is greater than than 0.5!"); * value // true * ``` * * @param expression - The expression to test. * @param msg - The optional message to display if the assertion fails. * @throws an {@link Error} if `expression` is not truthy. */ export declare function assert(expression: unknown, msg?: string | undefined): asserts expression; //# sourceMappingURL=util.d.ts.map