import { FileProviderInterface } from "./file-provider-interface.js"; /** * Provides file data using node fs library * @deprecated - will be replaced with ReadableFile */ export declare class FileHandleFile implements FileProviderInterface { /** The FileHandle from which data is provided */ private file; /** Create a new FileHandleFile */ constructor(path: string, append?: boolean); /** * Truncates the file descriptor. * @param length desired file lenght */ truncate(length: number): Promise; /** * Append data to a file. * @param buffer data to append */ append(buffer: Uint8Array): Promise; /** Close file */ destroy(): Promise; /** * Gets an unsigned 8-bit integer at the specified byte offset from the start of the file. * @param offset The offset, in bytes, from the start of the file where to read the data. */ getUint8(offset: number | bigint): Promise; /** * Gets an unsigned 16-bit integer at the specified byte offset from the start of the file. * @param offset The offset, in bytes, from the start of the file where to read the data. */ getUint16(offset: number | bigint): Promise; /** * Gets an unsigned 32-bit integer at the specified byte offset from the start of the file. * @param offset The offset, in bytes, from the start of the file where to read the data. */ getUint32(offset: number | bigint): Promise; /** * Gets an unsigned 32-bit integer at the specified byte offset from the start of the file. * @param offset The offset, in bytes, from the start of the file where to read the data. */ getBigUint64(offset: number | bigint): Promise; /** * returns an ArrayBuffer whose contents are a copy of this file bytes from startOffset, inclusive, up to endOffset, exclusive. * @param startOffset The offset, in byte, from the start of the file where to start reading the data. * @param endOffset The offset, in bytes, from the start of the file where to end reading the data. */ slice(startOffset: bigint, endOffset: bigint): Promise; /** * the length (in bytes) of the data. */ get length(): bigint; } //# sourceMappingURL=file-handle-file.d.ts.map