import { FlowAction } from '../actions/action'; import { FlowVersion } from '../flow-version'; import { FlowOperationType, StepLocationRelativeToParent } from './index'; export type InsideBranchPasteLocation = { branchIndex: number; stepLocationRelativeToParent: StepLocationRelativeToParent.INSIDE_BRANCH; parentStepName: string; }; export type OutsideBranchPasteLocation = { parentStepName: string; stepLocationRelativeToParent: StepLocationRelativeToParent.AFTER | StepLocationRelativeToParent.INSIDE_LOOP; }; export type PasteLocation = InsideBranchPasteLocation | OutsideBranchPasteLocation; export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion: FlowVersion, pastingDetails: PasteLocation) => ({ type: FlowOperationType.MOVE_ACTION; request: { name: string; newParentStep: string; stepLocationRelativeToNewParent?: StepLocationRelativeToParent | undefined; branchIndex?: number | undefined; }; } | { type: FlowOperationType.CHANGE_STATUS; request: { status: import("..").FlowStatus; }; } | { type: FlowOperationType.LOCK_AND_PUBLISH; request: { status?: import("..").FlowStatus | undefined; }; } | { type: FlowOperationType.USE_AS_DRAFT; request: { versionId: string; }; } | { type: FlowOperationType.LOCK_FLOW; request: Record; } | { type: FlowOperationType.IMPORT_FLOW; request: { displayName: string; trigger: { type: import("../triggers/trigger").FlowTriggerType.EMPTY; settings: any; name: string; valid: boolean; displayName: string; lastUpdatedDate: string; nextAction?: any; } | { type: import("../triggers/trigger").FlowTriggerType.PIECE; settings: { propertySettings: Record; pieceName: string; pieceVersion: string; input: Record; sampleData?: { sampleDataFileId?: string | undefined; sampleDataInputFileId?: string | undefined; lastTestDate?: string | undefined; } | undefined; customLogoUrl?: string | undefined; triggerName?: string | undefined; }; name: string; valid: boolean; displayName: string; lastUpdatedDate: string; nextAction?: any; }; schemaVersion?: string | null | undefined; notes?: { id: string; content: string; color: import("..").NoteColorVariant; position: { x: number; y: number; }; size: { width: number; height: number; }; createdAt: string; updatedAt: string; ownerId?: string | null | undefined; }[] | null | undefined; }; } | { type: FlowOperationType.CHANGE_NAME; request: { displayName: string; }; } | { type: FlowOperationType.DELETE_ACTION; request: { names: string[]; }; } | { type: FlowOperationType.UPDATE_ACTION; request: ({ type: import("../actions/action").FlowActionType.CODE; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { input: Record; sourceCode: { packageJson: string; code: string; }; errorHandlingOptions?: { continueOnFailure?: { value?: boolean | undefined; } | undefined; retryOnFailure?: { value?: boolean | undefined; } | undefined; } | undefined; customLogoUrl?: string | undefined; }; }) | ({ type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { items: string; customLogoUrl?: string | undefined; }; }) | ({ type: import("../actions/action").FlowActionType.PIECE; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { pieceName: string; input: Record; pieceVersion: string; propertySettings: Record; actionName?: string | undefined; errorHandlingOptions?: { continueOnFailure?: { value?: boolean | undefined; } | undefined; retryOnFailure?: { value?: boolean | undefined; } | undefined; } | undefined; customLogoUrl?: string | undefined; }; }) | ({ type: import("../actions/action").FlowActionType.ROUTER; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { branches: ({ conditions: ({ firstValue: string; secondValue: string; caseSensitive?: boolean | undefined; operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined; } | { firstValue: string; operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined; })[][]; branchType: import("../actions/action").BranchExecutionType.CONDITION; branchName: string; } | { branchType: import("../actions/action").BranchExecutionType.FALLBACK; branchName: string; })[]; executionType: import("../actions/action").RouterExecutionType; customLogoUrl?: string | undefined; }; }); } | { type: FlowOperationType.ADD_ACTION; request: { parentStep: string; action: ({ type: import("../actions/action").FlowActionType.CODE; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { input: Record; sourceCode: { packageJson: string; code: string; }; errorHandlingOptions?: { continueOnFailure?: { value?: boolean | undefined; } | undefined; retryOnFailure?: { value?: boolean | undefined; } | undefined; } | undefined; customLogoUrl?: string | undefined; }; }) | ({ type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { items: string; customLogoUrl?: string | undefined; }; }) | ({ type: import("../actions/action").FlowActionType.PIECE; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { pieceName: string; input: Record; pieceVersion: string; propertySettings: Record; actionName?: string | undefined; errorHandlingOptions?: { continueOnFailure?: { value?: boolean | undefined; } | undefined; retryOnFailure?: { value?: boolean | undefined; } | undefined; } | undefined; customLogoUrl?: string | undefined; }; }) | ({ type: import("../actions/action").FlowActionType.ROUTER; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { branches: ({ conditions: ({ firstValue: string; secondValue: string; caseSensitive?: boolean | undefined; operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined; } | { firstValue: string; operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined; })[][]; branchType: import("../actions/action").BranchExecutionType.CONDITION; branchName: string; } | { branchType: import("../actions/action").BranchExecutionType.FALLBACK; branchName: string; })[]; executionType: import("../actions/action").RouterExecutionType; customLogoUrl?: string | undefined; }; }); stepLocationRelativeToParent?: StepLocationRelativeToParent | undefined; branchIndex?: number | undefined; }; } | { type: FlowOperationType.UPDATE_TRIGGER; request: { type: import("../triggers/trigger").FlowTriggerType.EMPTY; name: string; displayName: string; settings: any; valid: boolean; nextAction?: any; } | ({ type: import("../triggers/trigger").FlowTriggerType.PIECE; name: string; displayName: string; valid: boolean; nextAction?: any; } & { settings: { pieceName: string; input: Record; pieceVersion: string; propertySettings: Record; triggerName?: string | undefined; customLogoUrl?: string | undefined; }; }); } | { type: FlowOperationType.CHANGE_FOLDER; request: { folderId?: string | null | undefined; }; } | { type: FlowOperationType.DUPLICATE_ACTION; request: { stepName: string; }; } | { type: FlowOperationType.DELETE_BRANCH; request: { branchIndex: number; stepName: string; }; } | { type: FlowOperationType.ADD_BRANCH; request: { branchIndex: number; stepName: string; branchName: string; conditions?: ({ firstValue: string; secondValue: string; caseSensitive?: boolean | undefined; operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined; } | { firstValue: string; operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined; })[][] | undefined; }; } | { type: FlowOperationType.DUPLICATE_BRANCH; request: { branchIndex: number; stepName: string; }; } | { type: FlowOperationType.SET_SKIP_ACTION; request: { names: string[]; skip: boolean; }; } | { type: FlowOperationType.UPDATE_METADATA; request: { metadata?: Record | null | undefined; }; } | { type: FlowOperationType.MOVE_BRANCH; request: { sourceBranchIndex: number; targetBranchIndex: number; stepName: string; }; } | { type: FlowOperationType.SAVE_SAMPLE_DATA; request: { stepName: string; payload: unknown; type: import("..").SampleDataFileType; }; } | { type: FlowOperationType.UPDATE_MINUTES_SAVED; request: { timeSavedPerRun?: number | null | undefined; }; } | { type: FlowOperationType.UPDATE_OWNER; request: { ownerId: string; }; } | { type: FlowOperationType.UPDATE_NOTE; request: { id: string; color: import("..").NoteColorVariant; content: string; position: { x: number; y: number; }; size: { width: number; height: number; }; ownerId?: string | null | undefined; }; } | { type: FlowOperationType.DELETE_NOTE; request: { id: string; }; } | { type: FlowOperationType.ADD_NOTE; request: { id: string; color: import("..").NoteColorVariant; content: string; position: { x: number; y: number; }; size: { width: number; height: number; }; }; } | { type: FlowOperationType.UPDATE_SAMPLE_DATA_INFO; request: { stepName: string; sampleDataSettings?: { sampleDataFileId?: string | undefined; sampleDataInputFileId?: string | undefined; } | null | undefined; }; })[]; //# sourceMappingURL=paste-operations.d.ts.map