/** * LocalFile represents a file stored on the local file system. * It provides utility methods for reading the file content and managing its lifecycle. */ export declare class LocalFile { private _autoDelete; readonly storedPath: string; filename: string; type?: string; encoding?: BufferEncoding; constructor(storedPath: string, options?: LocalFile.Options); text(): Promise; buffer(): Promise; /** * Deletes the local file. * * @returns A promise that resolves when the file is deleted. */ delete(): Promise; get size(): number; get autoDelete(): boolean; set autoDelete(value: boolean); static tempFilename(filename?: string, tempDirectory?: string): string; } export declare namespace LocalFile { interface Options { filename?: string; autoDelete?: boolean; type?: string; encoding?: BufferEncoding; } }