import type { PreparedWorkflow, WorkflowImportOutcome } from '../entities/workflow/workflow-import.types';
import type { ImportBindingMap, ImportCredentialSummary, ImportedFolderSummary, ImportedProjectSummary, ImportedWorkflowSummary, ImportPackageSummary, ImportResult, ImportVariableSummary, PackageImportBindings } from '../n8n-packages.types';
import type { PackageManifest } from '../spec/manifest.schema';
import type { PackageCredentialRequirement } from '../spec/requirements.schema';
export declare function toPackageSummary(manifest: PackageManifest): ImportPackageSummary;
export declare function toImportedWorkflowSummaries(outcomes: WorkflowImportOutcome[], projectId: string): ImportedWorkflowSummary[];
export declare function buildImportResult(input: {
    package: ImportPackageSummary;
    workflows: ImportedWorkflowSummary[];
    folders: ImportedFolderSummary[];
    projects: ImportedProjectSummary[];
    bindings: PackageImportBindings;
    credentials: ImportCredentialSummary;
    variables: ImportVariableSummary;
}): ImportResult;
export declare function assertPackageImportApiKeyScopes(apiKeyScopes: string[] | undefined, required: string[]): void;
export declare function identifyRequirements<T extends {
    usedByWorkflows: string[];
}>(requirements: T[] | undefined, workflows: PreparedWorkflow[]): T[] | undefined;
export declare function scopeCredentialBindingsToRequirements(bindings: ImportBindingMap | undefined, requirements: PackageCredentialRequirement[] | undefined): ImportBindingMap | undefined;
