import type { InstanceAiEvent } from '@n8n/api-types'; import type { StoredEvent } from '@n8n/instance-ai'; import { DataSource, Repository } from '@n8n/typeorm'; import { InstanceAiEventLogEntry } from '../entities/instance-ai-event-log-entry.entity'; export interface UnfinishedRun { threadId: string; runId: string; } export declare class InstanceAiEventLogRepository extends Repository { constructor(dataSource: DataSource); maxSeq(threadId: string): Promise; appendBatch(threadId: string, firstSeq: number, events: InstanceAiEvent[]): Promise; payloadAt(threadId: string, seq: number): Promise; getAfter(threadId: string, afterSeq: number): Promise; getForRuns(threadId: string, runIds: string[]): Promise; getForThread(threadId: string): Promise>; lastFactAt(threadId: string, runId: string): Promise; findUnfinishedRuns(threadId?: string): Promise; private toEvent; }