import { type AnyTdfStream } from '../client/tdf-stream.js';
/**
 * Read data from a seekable stream.
 * @param byteStart First byte to read. If negative, reads from the end. If absent, reads everything
 * @param byteEnd Index after last byte to read (exclusive)
 */
export type Chunker = (byteStart?: number, byteEnd?: number) => Promise<Uint8Array>;
export declare const fromBrowserFile: (fileRef: Blob) => Chunker;
export declare const fromBuffer: (buffer: Uint8Array) => Chunker;
export declare const fromNodeFile: (filePath: string) => Chunker;
export declare const fromUrl: (location: string) => Chunker;
type sourcetype = 'buffer' | 'file-browser' | 'file-node' | 'remote' | 'stream';
type DataSource = {
    type: sourcetype;
    location: AnyTdfStream | Uint8Array | Blob | string;
};
export declare const fromDataSource: ({ type, location }: DataSource) => Promise<Chunker>;
export {};
//# sourceMappingURL=chunkers.d.ts.map