import type { InstanceAiEvent, InstanceAiSetupItem } 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; getForThreadRuns(threadId: string, runIds: string[]): Promise>; findRunIdsInWindow(threadId: string, window: { since?: Date; before?: Date; }): Promise; getRunStarts(threadId: string): Promise>; findLangsmithAnchor(threadId: string, responseId: string): Promise<{ langsmithRunId: string; langsmithTraceId: string; } | undefined>; getSetupItemsSnapshots(threadId: string): Promise>; lastFactAt(threadId: string, runId: string): Promise; findUnfinishedRuns(threadId?: string): Promise; private toEvent; }