import type { User } from '@n8n/db'; export type { CredentialResolution } from './entities/credential/credential.types'; export type CredentialMatchingMode = 'id-only'; export type CredentialMissingMode = 'must-preexist'; export declare const WorkflowConflictPolicy: { readonly NewVersion: "new-version"; readonly Fail: "fail"; readonly Skip: "skip"; }; export type WorkflowConflictPolicy = (typeof WorkflowConflictPolicy)[keyof typeof WorkflowConflictPolicy]; export interface ExportWorkflowsRequest { user: User; workflowIds: string[]; } export interface ImportPackageRequest { user: User; projectId?: string; folderId?: string; packageBuffer: Buffer; credentialMatchingMode: CredentialMatchingMode; credentialMissingMode: CredentialMissingMode; workflowConflictPolicy: WorkflowConflictPolicy; } export interface ImportedWorkflowSummary { sourceWorkflowId: string; localId: string; name: string; projectId: string; parentFolderId: string | null; activeVersionId: string | null; status: 'created' | 'updated' | 'skipped'; } export type ImportBindingMap = Map; export interface PackageImportBindings { workflows: ImportBindingMap; credentials: ImportBindingMap; } export declare function createBindings(seed?: Partial): PackageImportBindings; export type SerializedBindings = Record>; export declare function serializeBindings(bindings: PackageImportBindings): SerializedBindings; export interface ImportResult { package: { sourceN8nVersion: string; sourceId: string; exportedAt: string; }; workflows: ImportedWorkflowSummary[]; bindings: SerializedBindings; }