import { WorkflowCreationService } from '../../../../workflows/workflow-creation.service';
import { WorkflowService } from '../../../../workflows/workflow.service';
import { WorkflowImportMatchService } from './workflow-import-match.service';
import type { PreparedWorkflow, WorkflowImportContext, WorkflowImportOutcome, WorkflowImportPlan } from './workflow-import.types';
import { WorkflowPublisher } from './workflow-publisher';
import type { ImportContext, ImportWorkflowProperties, PackageImportBindings } from '../../n8n-packages.types';
export interface WorkflowImportResult {
    outcomes: WorkflowImportOutcome[];
    bindings: PackageImportBindings;
}
export declare class WorkflowImporter {
    private readonly workflowImportMatchService;
    private readonly workflowCreationService;
    private readonly workflowService;
    private readonly workflowPublisher;
    constructor(workflowImportMatchService: WorkflowImportMatchService, workflowCreationService: WorkflowCreationService, workflowService: WorkflowService, workflowPublisher: WorkflowPublisher);
    plan(context: ImportContext, prepared: PreparedWorkflow[], options: ImportWorkflowProperties): Promise<WorkflowImportPlan>;
    private collectIdConflicts;
    apply(context: WorkflowImportContext, plan: WorkflowImportPlan, bindings: PackageImportBindings): Promise<WorkflowImportResult>;
    private applyItem;
    private persistWorkflow;
}
