import type { SqliteAdapter as Database } from '../db/sqlite-adapter.js'; import type { CostBasis, CostCenterKind, EconomyAgent } from '../types/index.js'; export interface OtelIngestRow { agent: EconomyAgent; session_id: string; model: string; cost_usd: number; input_tokens: number; output_tokens: number; timestamp: string; source_request_id: string; cost_basis?: CostBasis; cost_center?: string; cost_center_kind?: CostCenterKind; cost_center_id?: string; attribution_tag?: string; project_path?: string; project_name?: string; repo?: string; account_key?: string; account_tool?: string; account_name?: string; account_email?: string; account_source?: string; } /** Parse OTLP/HTTP JSON metrics into normalized ingest rows. */ export declare function parseOtlpMetrics(body: unknown): OtelIngestRow[]; export declare function parseSimpleIngest(body: unknown): OtelIngestRow | null; export declare function ingestOtelRows(db: Database, rows: OtelIngestRow[]): Promise<{ requests: number; sessions: number; }>; //# sourceMappingURL=otel.d.ts.map