import { drainCodexRollout, splitCodexEventsByCutoff, extractLastCodexTurn, type CodexBridgeEvent, type CodexDrainResult } from './codex-transcript.js';
export { drainCodexRollout as drainTraexRollout };
export { splitCodexEventsByCutoff as splitTraexEventsByCutoff };
export { extractLastCodexTurn as extractLastTraexTurn };
export type { CodexBridgeEvent as TraexBridgeEvent, CodexDrainResult as TraexDrainResult };
/** Find the rollout file an externally-running TRAE process has open.
 *  Same /proc/<pid>/fd strategy as findCodexRolloutByPid, but with a
 *  TRAE-specific path matcher so we never bind to a sibling Codex pane. */
export declare function findTraexRolloutByPid(pid: number): {
    path: string;
    cliSessionId: string;
} | undefined;
/** Locate the rollout file for a given TRAE session UUID. Filename shape is
 *  identical to Codex: `rollout-<ts>-<sid>.jsonl`, so a suffix match over the
 *  TRAE sessions tree is unambiguous. */
export declare function findTraexRolloutBySessionId(cliSessionId: string): string | undefined;
//# sourceMappingURL=traex-transcript.d.ts.map