/**
 * Usage backfill handler — builds usage reports from stored wake cycle
 * records and uploads them directly to the onboarding server.
 *
 * For legacy rows that lack `tool_calls_json`, the handler attempts to
 * reconstruct tool calls by reading transcript lines from live or archived
 * transcript files (via `readWakeCycleTranscriptLines`).
 *
 * Backfill does NOT enqueue into usage.db and does NOT mutate
 * `usage_reported`. Server-side deduplication by `wakeCycleId` handles
 * any overlap with heartbeat-uploaded reports.
 */
import type { VisionClawConfig } from "../../config/types.js";
export declare function createUsageBackfillHandler(config: VisionClawConfig): () => Promise<{
    status: "completed" | "failed";
    result?: string;
}>;
//# sourceMappingURL=usage-backfill-handler.d.ts.map