/**
 * Shared usage report builder — constructs a `WakeCycleUsageReport` from
 * a stored `WakeCycleRecord` row in `transcript_memory.db`.
 *
 * Used by:
 *  - `UsageReporter` (background scan → enqueue into usage.db)
 *  - `usage-backfill-handler` (direct server upload)
 */
import type { VisionClawConfig } from "../../config/types.js";
import { type ToolCallFact, type WakeCycleUsageReport } from "./usage-report-types.js";
import type { WakeCycleRecord } from "../transcript/transcript-indexer.js";
/**
 * Build a `WakeCycleUsageReport` from a stored wake cycle record.
 *
 * If `tool_calls_json` is missing or invalid, the report is built with
 * empty tool calls — the server will mark coverage as `missing_tool_calls`.
 *
 * If `overrideToolCalls` is provided, it takes precedence over the stored
 * JSON (used when backfill reconstructs tool calls from archived transcripts).
 */
export declare function buildWakeCycleUsageReportFromRecord(input: {
    row: WakeCycleRecord;
    config: VisionClawConfig;
    overrideToolCalls?: ToolCallFact[];
}): WakeCycleUsageReport;
//# sourceMappingURL=usage-report-builder.d.ts.map