import { ConfigService } from '@nestjs/config';
import { StorageService, type StoredObject } from './storage.service';
import { type MediaFolder } from '../media/media.constants';
export declare class LocalStorageService extends StorageService {
    private readonly root;
    private readonly publicBase;
    constructor(config: ConfigService);
    save(prefix: string, extension: string, body: Buffer, folder?: MediaFolder): Promise<StoredObject>;
    move(fromKey: string, toKey: string): Promise<void>;
    delete(key: string): Promise<void>;
    exists(key: string): Promise<boolean>;
    url(key: string): string;
    keyFromUrl(url: string): string | null;
    private safeSegment;
    private isSafeKey;
    private assertSafeKey;
    private absPath;
    private pathnameOf;
}
