import type { AdapterUsageCheckpoint } from "./types.js"; /** The consumer incrementally parses only new records (never the full history). * A fresh instance belongs to one CLI attempt. Call flush() after its process * exits, before retrying or final result handling. Checkpoint failures are * retained outside runChildProcess's best-effort onLog error handler. */ export declare function createUsageCheckpointLog(onLog: (stream: "stdout" | "stderr", chunk: string) => Promise, onUsage: ((receipt: AdapterUsageCheckpoint) => Promise) | undefined, consume: (records: string) => AdapterUsageCheckpoint | null): ((stream: "stdout" | "stderr", chunk: string) => Promise) & { flush(options?: { complete?: boolean; }): Promise; }; //# sourceMappingURL=usage-checkpoint.d.ts.map