/**
 * Core import-tasks logic — import tasks from cross-project export packages.
 *
 * Extracted from CLI import-tasks command for dispatch layer access.
 *
 * @task T5323, T5328, T046
 * @epic T4545
 */
import type { TaskStatus } from '@cleocode/contracts';
import type { ImportFromPackageOptions, ImportFromPackageResult } from '../nexus/transfer-types.js';
import type { ExportPackage } from '../store/export.js';
type OnConflict = 'duplicate' | 'rename' | 'skip' | 'fail';
type OnMissingDep = 'strip' | 'placeholder' | 'fail';
export interface ImportTasksParams {
    file: string;
    dryRun?: boolean;
    parent?: string;
    phase?: string;
    addLabel?: string;
    provenance?: boolean;
    resetStatus?: TaskStatus;
    onConflict?: OnConflict;
    onMissingDep?: OnMissingDep;
    force?: boolean;
    cwd?: string;
}
export interface ImportTasksResult {
    imported: number;
    skipped: number;
    idRemap: Record<string, string>;
    dryRun?: boolean;
    preview?: {
        tasks: Array<{
            id: string;
            title: string;
            type: string;
        }>;
    };
}
/**
 * Import tasks from an in-memory ExportPackage with ID remapping.
 * Core logic extracted from importTasksPackage for reuse by transfer engine.
 */
export declare function importFromPackage(exportPkg: ExportPackage, options?: ImportFromPackageOptions): Promise<ImportFromPackageResult>;
/**
 * Import tasks from a cross-project export package file with ID remapping.
 * Thin wrapper around importFromPackage that handles file I/O.
 */
export declare function importTasksPackage(params: ImportTasksParams): Promise<ImportTasksResult>;
export {};
//# sourceMappingURL=import-tasks.d.ts.map