/// <reference types="node" resolution-mode="require"/>
import { IRandomReader } from '../type.js';
/**
 * Provides abstract file access via the IRandomRead interface
 */
export declare class RandomFileReader implements IRandomReader {
    private readonly fileHandle;
    filePath: string;
    fileSize: number;
    private constructor();
    /**
     * Read from a given position of an abstracted file or buffer.
     * @param buffer {Buffer} is the buffer that the data will be written to.
     * @param offset {number} is the offset in the buffer to start writing at.
     * @param length {number}is an integer specifying the number of bytes to read.
     * @param position {number} is an argument specifying where to begin reading from in the file.
     * @return {Promise<number>} bytes read
     */
    randomRead(buffer: Buffer, offset: number, length: number, position: number): Promise<number>;
    close(): Promise<void>;
    static init(filePath: string, fileSize: number): Promise<RandomFileReader>;
}
