genomic-reader
Version:
A Typescript library for reading BigWig, BigBed, 2bit, and Bam files. Capable of streaming. For use in the browser or on Node.js.
13 lines (12 loc) • 455 B
TypeScript
/// <reference types="node" />
import { DataLoader } from './DataLoader';
import { AxiosInstance } from "axios";
import { Readable } from 'stream';
export declare class AxiosDataLoader implements DataLoader {
private url;
private axios;
private cachedFileSize;
constructor(url: string, axios?: AxiosInstance);
load(start: number, size?: number): Promise<ArrayBuffer>;
loadStream(start: number, size?: number): Promise<Readable>;
}