/*!
 * name: nuget-server
 * version: 0.19.0
 * description: NuGet server on Node.js
 * author: Kouji Matsui (@kekyo@mi.kekyo.net)
 * license: MIT
 * repository.url: https://github.com/kekyo/nuget-server.git
 * git.commit.hash: 5b9501882b352a0490b3091210ed1740cfb81389
 */

import { Logger } from '../types';
/**
 * Package information for import
 */
export interface PackageToImport {
    id: string;
    versions: string[];
}
/**
 * Import progress information
 */
export interface ImportProgress {
    totalPackages: number;
    totalVersions: number;
    downloadedVersions: number;
    failedVersions: number;
    currentPackage?: string;
    currentVersion?: string;
}
/**
 * Import service configuration
 */
export interface ImportServiceConfig {
    sourceUrl: string;
    username?: string;
    password?: string;
    packageDir: string;
    logger: Logger;
    onProgress?: (progress: ImportProgress) => void;
}
/**
 * Import result summary
 */
export interface ImportResult {
    totalPackages: number;
    totalVersions: number;
    successfulVersions: number;
    failedVersions: number;
    failures: Array<{
        packageId: string;
        version: string;
        error: string;
    }>;
}
/**
 * Service for importing packages from remote NuGet servers
 */
export interface ImportService {
    discoverPackages: () => Promise<PackageToImport[]>;
    importPackages: (packages: PackageToImport[]) => Promise<ImportResult>;
}
/**
 * Creates an import service for transferring packages between NuGet servers
 * @param config - Import service configuration
 * @returns Import service instance
 */
export declare const createImportService: (config: ImportServiceConfig) => ImportService;
//# sourceMappingURL=importService.d.ts.map