import type { AsyncDisposal } from "../disposal.js";
import { type UrlOptions } from "../io/http.js";
import type { Source } from "../io/source.js";
/**
 * An HTTP source over `node:http`, or over `fetch` when one is passed.
 *
 * A server that answers a Range request with anything but 206 fails the read as `source-failed`.
 */
export declare function urlSource(url: string, options?: UrlOptions): Promise<Source & AsyncDisposal>;
