import { type CodexExtractOptions, type CodexExtraction } from './codex-extract.mts'; export type CodexFileResult = CodexExtraction | { error: string; }; /** * Extracts records from one Codex transcript. A forked child repeats its parent's history before * its first owned `task_started`; that prefix is spooled under `tempRoot` and dropped once the * owned task starts. When no owned task is ever found the whole spool is replayed, deliberately * over-counting rather than losing activity. */ export declare function scanCodexFile(file: string, tempRoot: string, options: CodexExtractOptions): Promise;