/** * Copyright (c) 2025 Elara AI Pty Ltd * Licensed under BSL 1.1. See LICENSE for details. */ import type { StorageBackend } from '../storage/index.js'; import type { PackageExportStore, PackageImportStore } from './interfaces.js'; /** Dependencies for handleProcessExport. */ export interface ProcessExportDeps { storage: StorageBackend; exportStore: PackageExportStore; } /** Input for handleProcessExport. */ export interface ProcessExportInput { id: string; repo: string; zipPath: string; } /** * Processes a package or workspace export job. * * Gets the export record, determines whether this is a package or workspace * export (based on the `workspace` field), runs the appropriate export * function, and updates the status to completed or failed. * * @param deps - Storage backend and export store * @param input - Job ID, repository path, and output zip path * * @throws Re-throws errors after updating status to failed and cleaning up */ export declare function handleProcessExport(deps: ProcessExportDeps, input: ProcessExportInput): Promise; /** Dependencies for handleProcessImport. */ export interface ProcessImportDeps { storage: StorageBackend; importStore: PackageImportStore; } /** Input for handleProcessImport. */ export interface ProcessImportInput { id: string; repo: string; zipPath: string; } /** * Processes a package import job. * * Gets the import record, verifies the file size matches, runs packageImport, * and updates the status to completed or failed. Cleans up the staging zip * file in all cases. * * @param deps - Storage backend and import store * @param input - Job ID, repository path, and staging zip path * * @throws Re-throws errors after updating status to failed */ export declare function handleProcessImport(deps: ProcessImportDeps, input: ProcessImportInput): Promise; //# sourceMappingURL=process.d.ts.map