import type { WorkflowEntity, WorkflowHistory } from '@n8n/db'; import { type IDataObject, type INodeTypes, type IRun, type ITaskData, type IWorkflowBase, type IWorkflowSettings, type RelatedExecution, type WorkflowStructureIssue } from 'n8n-workflow'; import { BadRequestError } from './errors/response-errors/bad-request.error'; export declare function validatePinDataSize(workflow: IWorkflowBase): void; export declare function getLastExecutedNodeRuns(inputData: IRun): ITaskData[]; export declare function getLastExecutedNodeData(inputData: IRun): ITaskData | undefined; export declare function addNodeIds(workflow: IWorkflowBase): void; export declare function resolveNodeWebhookIds(workflow: IWorkflowBase, nodeTypes: INodeTypes): void; export declare function validateWorkflowNodeGroups(workflow: Pick): void; export declare class WorkflowStructureBadRequestError extends BadRequestError { readonly issues: WorkflowStructureIssue[]; constructor(message: string, issues: WorkflowStructureIssue[]); } export declare function validateWorkflowStructure(workflow: Pick): void; export declare function removeDefaultValues(settings: IWorkflowSettings, defaultExecutionTimeout: number): IWorkflowSettings; export declare function replaceInvalidCredentials(workflow: T, projectId: string): Promise; export declare function getVariables(workflowId?: string, projectId?: string): Promise; export declare function shouldRestartParentExecution(parentExecution: RelatedExecution | undefined): parentExecution is RelatedExecution; export declare function updateParentExecutionWithChildResults(parentExecutionId: string, subworkflowResults: IRun): Promise; export declare function getActiveVersionUpdateValue(dbWorkflow: WorkflowEntity, updatedVersion: WorkflowHistory, updatedActive?: boolean): WorkflowHistory | null; export declare function preserveInputOverride(runDataArray: ITaskData[]): void;