import GziIndex from './gziIndex.ts'; import type { GenericFilehandle } from 'generic-filehandle2'; declare function createLimit(concurrency: number): (task: () => Promise | T) => Promise; export default class BgzFilehandle { filehandle: GenericFilehandle; gzi: GziIndex; limit: ReturnType; constructor({ filehandle, gziFilehandle, blockConcurrency, }: { filehandle: GenericFilehandle; gziFilehandle: GenericFilehandle; blockConcurrency?: number; }); private _readAndUncompressBlock; read(length: number, position: number): Promise>; } export {};