/// /// /// import { DataSource } from '../data-source.js'; import { Readable, Writable } from 'stream'; /** * Provides a data source implementation for accessing * data stored over HTTPS. */ export declare class HttpsDataSource implements DataSource { private url; /** * HTTPS data source constructor. * @param url the URL of the data source. */ constructor(url: URL); /** * @returns a readable stream to the data source. */ asReadStream(): Promise; /** * @returns a writable stream to the data source. */ asWriteStream(): Writable; /** * @returns an array like buffer of the data source. * @note this method will buffer the entire content of * the data in memory. */ asArrayBuffer(): Promise; /** * @returns the content of the data pointed by the data * source as a buffer. * @note this method will buffer the entire content of * the data in memory. */ asBuffer(): Promise; /** * @returns a promise resolved when the content of * the data source has been written to the specified * file. The promise resolves the path of the * output file. * @param filePath the path to the file to write to. * @note the file path must be absolute. */ asFile(filePath?: string): Promise; }