import { IncomingFile, PresignedUpload, StoredObject } from '../../interfaces/file.interface'; import { ExistsResult, StorageAdapter } from '../../interfaces/storage-adapter.interface'; import { LocalStorageConfig } from '../../interfaces/upload-options.interface'; /** * Local filesystem adapter. Fully functional (used for dev + hermetic tests). * Signed URLs point at a `/uploads/_local` receiver route that the Nest/Express * adapters mount when the driver is local, so the presigned flow works end-to-end offline. */ export declare class LocalAdapter implements StorageAdapter { readonly name = "local"; private readonly basePath; private readonly publicBaseUrl; private readonly secret; constructor(cfg: LocalStorageConfig); private full; upload(file: IncomingFile, key: string): Promise; download(key: string): Promise; delete(key: string): Promise; exists(key: string): Promise; private sign; private verify; getSignedUploadUrl(key: string, opts: { expiresIn: number; contentType?: string; }): Promise; getSignedDownloadUrl(key: string, opts: { expiresIn: number; }): Promise; copy(srcKey: string, destKey: string): Promise; publicUrl(key: string): string; readRange(key: string, start: number, end: number): Promise; /** Local-only receiver for the signed PUT flow (dev/test). */ receiveSignedPut(key: string, exp: number, token: string, buffer: Buffer): Promise; }