export interface PiBridgeEvent { uuid: string; timestampMs: number; kind: 'user' | 'assistant_final'; text: string; /** Best-effort terminal outcome carried by an `assistant_final` (attribution * metadata, NOT a durable receipt — Pi has no reliableTurnTerminal). Undefined * on a `stop`/`length` completion (keeps the historical completed default and * lets the empty-final fallback fire); `failed` for `error`, `ambiguous` for * `aborted`. */ terminalStatus?: 'completed' | 'failed' | 'ambiguous'; terminalErrorCode?: string; sourceSessionId?: string; } export interface PiDrainResult { events: PiBridgeEvent[]; newOffset: number; pendingTail: string; } export declare function findPiTranscriptBySessionId(cliSessionId: string, cwd?: string): string | undefined; export declare function findPiTranscriptByPid(pid: number): { path: string; cliSessionId: string; } | undefined; export declare function drainPiTranscript(path: string, fromOffset: number): PiDrainResult; //# sourceMappingURL=pi-transcript.d.ts.map