/** * SpendPipeline — wires SpendEmitter to persistence and alerting * * Call initSpendPipeline() once at startup to connect: * SpendEmitter → SpendRecordWriter (persistence) * SpendEmitter → BudgetMonitor (alerting) */ import type { BudgetAlert } from './budget-monitor.js'; import type { BillingBudgetConfig } from './spend-aggregator.js'; export interface SpendPipelineOptions { /** Directory for JSONL spend files (default: .specweave/state/spend) */ spendDir: string; /** Budget configuration from config.json billing.budgets */ budgetConfig?: BillingBudgetConfig; /** Callback when budget alert fires */ onBudgetAlert?: (alert: BudgetAlert) => void; } /** * Initialize the spend tracking pipeline. * Safe to call multiple times — only initializes once. */ export declare function initSpendPipeline(options: SpendPipelineOptions): void; /** * Reset initialization state (for testing) */ export declare function resetSpendPipeline(): void; //# sourceMappingURL=spend-pipeline.d.ts.map