import { Message, Provider, ReasoningRetention, RunState, Usage, UsageAccumulator } from "@graphorin/core"; import "@graphorin/memory"; //#region src/runtime/messages.d.ts /** * Fold a completed (or failed - tokens were spent either way) child * run's usage into the parent run's accounting: `state.usage`, * `state.usageByModel` and the run's {@link UsageAccumulator}. * Children carrying a per-model breakdown fold model-by-model (each * child model entry counts as one attempt on the parent); a child * without `usageByModel` folds its aggregate under the synthetic id * `sub-agent:`, skipped entirely when all-zero so phantom * entries never appear. * * Must be called exactly once per child run at exactly one seam - * a second call double-counts (pinned by test). */ declare function foldChildRunUsage(state: RunState, usageAcc: UsageAccumulator | undefined, childState: RunState, childName: string): void; //#endregion export { foldChildRunUsage }; //# sourceMappingURL=messages.d.ts.map