import { ReadStream } from "node:fs"; import { Readable } from "node:stream"; import { TusDriver } from "@directus/storage"; import { ChunkedUploadContext, ReadOptions, Stat } from "@directus/types"; //#region src/index.d.ts type DriverLocalConfig = { root: string; }; declare class DriverLocal implements TusDriver { private readonly root; constructor(config: DriverLocalConfig); private fullPath; /** * Ensures that the directory exists. If it doesn't, it's created. */ private ensureDir; read(filepath: string, options?: ReadOptions): Promise; stat(filepath: string): Promise; exists(filepath: string): Promise; move(src: string, dest: string): Promise; copy(src: string, dest: string): Promise; write(filepath: string, content: Readable): Promise; delete(filepath: string): Promise; list(prefix?: string): AsyncGenerator; private listGenerator; get tusExtensions(): string[]; createChunkedUpload(filepath: string, context: ChunkedUploadContext): Promise; deleteChunkedUpload(filepath: string, _context: ChunkedUploadContext): Promise; finishChunkedUpload(_filepath: string, _context: ChunkedUploadContext): Promise; writeChunk(filepath: string, content: Readable, offset: number, _context: ChunkedUploadContext): Promise; } //#endregion export { DriverLocal, DriverLocal as default, DriverLocalConfig };