import type { CopilotStreamEvent, CopilotUsage } from './copilot-runner-types.js'; /** * Sum the per-model token counts out of a `--usage-output-file` payload. * Returns undefined — never a zeroed object — when the file has no model * metrics to read, so a caller can tell "copilot made no model call" (the * file is still written, with `modelMetrics: {}`) apart from a number it * actually measured. Summing across models covers a session that switched * model mid-run. Exported for unit testing against the captured fixture in * copilot-runner.test.ts. */ export declare function parseCopilotUsage(raw: string): CopilotUsage | undefined; /** Parse ONE NDJSON line into a normalized stream event (or null if it * carries nothing to yield). Shared by the incremental streaming path and * the batch parseCopilotEvents helper below (kept for unit testing against * fixture lines — copilot-runner.test.ts). */ export declare function handleLine(line: string): CopilotStreamEvent | null; /** Pure NDJSON parser — exported for unit testing against fixture lines * (copilot-runner.test.ts). */ export declare function parseCopilotEvents(lines: string[]): { texts: string[]; rawTexts: string[]; }; //# sourceMappingURL=copilot-runner-parse.d.ts.map