import { Logger } from '@n8n/backend-common'; import { WorkflowPublishedVersionRepository, type PublishedWorkflowDataForExecution, type WorkflowEntity, type WorkflowHistory } from '@n8n/db'; import { CacheService } from '../services/cache/cache.service'; export type { PublishedWorkflowDataForExecution }; export type PublishedWorkflowData = { workflow: WorkflowEntity; publishedVersion: WorkflowHistory; }; export declare class WorkflowPublishedDataService { private readonly logger; private readonly workflowPublishedVersionRepository; private readonly cacheService; constructor(logger: Logger, workflowPublishedVersionRepository: WorkflowPublishedVersionRepository, cacheService: CacheService); getPublishedWorkflowData(workflowId: string): Promise; getPublishedWorkflowDataForExecution(workflowId: string): Promise; getCachedPublishedWorkflowDataForExecution(workflowId: string): Promise; invalidateCache(workflowId: string): Promise; refreshCache(workflowId: string): Promise; }