import { IStorageService } from './storage.protocol.js';

declare class LocalStorageBackend implements IStorageService {
    private readonly basePath;
    constructor(basePath?: string);
    upload(key: string, data: Buffer | ReadableStream, contentType?: string): Promise<string>;
    download(key: string): Promise<Buffer>;
    delete(key: string): Promise<void>;
    getUrl(key: string, _expiresInSeconds?: number): Promise<string>;
    exists(key: string): Promise<boolean>;
    list(prefix?: string): Promise<string[]>;
    downloadStream(key: string): Promise<ReadableStream>;
    private resolvePath;
    /** Recursively list all files under dir, returning keys relative to basePath. */
    private listRecursive;
}

export { LocalStorageBackend };
