export class LocalStorageProvider {
    store = new Map();
    async put(key, buffer, contentType) {
        this.store.set(key, { buffer, contentType });
        return {
            key,
            url: `http://localhost:3000/v1/storage/${key}`,
            sizeBytes: buffer.length,
            expiresAt: new Date(Date.now() + 3600 * 1000).toISOString(),
        };
    }
    async createDownloadUrl(key, _expiresInSeconds) {
        if (!this.store.has(key)) {
            throw new Error(`File with key '${key}' not found in local storage`);
        }
        return `http://localhost:3000/v1/storage/${key}`;
    }
    async delete(key) {
        this.store.delete(key);
    }
}
//# sourceMappingURL=local-storage.js.map