/** * Generate synthetic Claude Code transcripts. * * Shaped to match the real on-disk format closely enough to exercise the parser, * and constructed so each fixture lands on a known verdict — which is what makes * the detectors regression-testable. */ type Json = Record; export declare class Builder { private readonly sid; private t; private readonly cwd; private readonly branch; private readonly model; private readonly lines; private prev; private n; constructor(opts?: { sessionId?: string; start?: Date; cwd?: string; branch?: string; model?: string; }); private tick; private base; private usage; user(text: string): this; say(text: string): this; /** * One assistant turn that consumed a large amount of context. * * Reaching a cost threshold through ordinary `say()` calls would take on the * order of a hundred and seventy messages, which makes the resulting fixture * unreadable and slow. A single turn with a big cache-read counter reaches the * same modelled cost and keeps the fixture legible. */ burn(cacheReadTokens: number, text?: string): this; call(tool: string, input: Json): string; result(tid: string, content: string, isError?: boolean, toolUseResult?: Json): this; read(path: string, body?: string): this; edit(path: string, oldStr: string, newStr: string): this; write(path: string, content: string): this; bash(cmd: string, { stdout, stderr, ok, denied, exitCode, }?: { stdout?: string; stderr?: string; ok?: boolean; denied?: boolean; exitCode?: number; }): this; /** * Emit a bare entry of an arbitrary `type`. Used to assert which entry types * the parser treats as known metadata versus schema drift. */ raw(type: string, extra?: Json): this; idle(minutes: number): this; compact(): this; writeTo(root: string): string; } export declare function fixtureProductive(): Builder; export declare function fixtureWasteful(): Builder; export declare function fixtureRisky(): Builder; export declare function fixtureUnverifiedClaim(): Builder; export declare function fixtureLongNoDiff(): Builder; /** One transcript file containing two runs separated by an idle gap. */ export declare function fixtureTwoSegments(): Builder; /** An edit undone later in the same run: A→B then B→A on one file. */ export declare function fixtureRevert(): Builder; /** * A long tail of activity after the last file change. * * Every idle gap stays under thirty minutes on purpose: exceeding * `FLIGHTREC_IDLE_GAP` would split this into two runs and the tail — the whole * point of the fixture — would land in a segment with no edit in it. */ export declare function fixtureStall(): Builder; /** Ten files changed in response to a one-line request. */ export declare function fixtureWideDiff(): Builder; /** A large diff with nothing green to back it. */ export declare function fixtureBigDiff(): Builder; /** Known spend with nothing to show for it on disk. */ export declare function fixtureExpensiveNoDiff(): Builder; /** * A question answered. Reads, no edits, over in a couple of minutes. * * Added when the fixture set had no run reaching the `unchanged` branch, because * the only other no-diff fixture ran for nineteen minutes and duration alone sent * it to `wasteful`. Analyzer 1.2.0 removed that rule, so `longNoDiff` now lands * here too — this fixture stays as the short, unambiguous case. */ export declare function fixtureQuestion(): Builder; export declare const ALL: Record Builder>; export declare function buildAll(root: string): Record; export {};