import type { CodexBridgeEvent } from './codex-transcript.js'; export interface OmpProvisionalFinal { event: CodexBridgeEvent; /** Session-tree entry that supplied the provisional assistant terminal. */ entryId?: string; /** Candidate plus metadata descendants, used to recognize same-lineage work. */ lineageIds: string[]; } export interface OmpTranscriptState { provisionalFinal?: OmpProvisionalFinal; } export interface OmpDrainResult { events: CodexBridgeEvent[]; newOffset: number; pendingTail: string; state: OmpTranscriptState; } export interface OmpDrainOptions { /** Worker-only: release a file-tail candidate after its guarded quiet probe. */ flushTrailingFinal?: boolean; } /** * Drain only complete JSONL lines. The returned byte offset never includes a * partial tail, so the worker can use offset equality as its quiet-cycle clock. */ export declare function drainOmpTranscript(path: string, fromOffset: number, previousState?: OmpTranscriptState, options?: OmpDrainOptions): OmpDrainResult; //# sourceMappingURL=omp-transcript.d.ts.map