import { DataSource } from '@n8n/typeorm'; import type { EntityManager } from '@n8n/typeorm'; import { BaseRepository } from './base-repository'; import { WorkflowPublishHistory } from '../entities'; import { type OperationContext, TransactionRunner } from '../services/transaction'; export type PublishHistoryScope = 'all' | 'latestActivation' | 'none'; export declare class WorkflowPublishHistoryRepository extends BaseRepository { constructor(dataSource: DataSource, transactionRunner: TransactionRunner); getLatestPublishHistoryEventId(workflowId: string, ctx?: OperationContext): Promise; addRecord({ workflowId, versionId, event, userId, }: Pick, trx?: EntityManager): Promise; findByVersion(workflowId: string, versionId: string, scope?: Exclude, trx?: EntityManager): Promise; findRecentAttributedByWorkflowIds(workflowIds: string[], perWorkflow: number): Promise>>; findLatestActivations(workflowId: string, versionIds: string[]): Promise; findTimelinePage(workflowId: string, { offset, limit }: { offset: number; limit: number; }): Promise; findActivatedByUserId(workflowId: string): Promise; findPublisherUserId(workflowId: string, versionId?: string | null): Promise; }