import { reportAssistantAiTokenUsage } from '@burdenoff/fe-libs/shared/assistant/api'; /** * The product id. The SAME value fe-libs sends as `AI_ASSISTANT_PRODUCT` and the * prefix of every `vibecontrols.assistant.*` translation key, so it has exactly * one source. */ export declare const PRODUCT = "vibecontrols"; /** The usage the shared panel reports once per completed turn (the seam's `reportTokenUsage`). */ export interface AssistantTokenUsage { workspaceId: string; sessionId: string; messageId?: string; model?: string; tokens: { input: number; output: number; }; } /** The shared charge, positional, as `@burdenoff/fe-libs/shared/assistant/api` declares it. */ export type ChargeAssistantTokenUsage = typeof reportAssistantAiTokenUsage; /** * Build the seam's `reportTokenUsage` over a positional charge. * * ★ The charge is a parameter so the adapter's decisions — what it forwards and * when it refuses — can be tested without a gateway. Production passes the * shared function and nothing else. * * ★★ A missing `messageId` or `model` is logged, not swallowed. This meter * exists because assistant spend was invisible; a silently skipped charge would * recreate exactly that blind spot, one turn at a time. The shared panel catches * a rejected charge, so a metering failure never breaks a turn. */ export declare function createAssistantTokenUsageReporter(charge: ChargeAssistantTokenUsage): (usage: AssistantTokenUsage) => Promise; /** VibeControls' `reportTokenUsage`: the shared `ReportAiTokenUsage` charge. */ export declare const reportAssistantTokenUsage: (usage: AssistantTokenUsage) => Promise;