/** * CostRecorder — forwards `agentfootprint.cost.*` emits to the dispatcher. * * Pattern: Factory (GoF) returning an EmitBridge instance. * Role: Bridges `cost.tick` + `cost.limit_hit` emits from LLMCall / Agent * stages (via `emitCostTick`) to the EventDispatcher so typed * consumer listeners fire. * Emits: agentfootprint.cost.tick / cost.limit_hit */ import { EmitBridge, type EmitBridgeOptions } from './EmitBridge.js'; export type CostRecorderOptions = Omit & { readonly id?: string; }; export declare function costRecorder(options: CostRecorderOptions): EmitBridge;