UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

14 lines (13 loc) • 746 B
import { type NormalizedUsage } from "../../agents/usage.js"; import { incrementCompactionCount } from "./session-updates.js"; import { persistSessionUsageUpdate } from "./session-usage.js"; type PersistRunSessionUsageParams = Parameters<typeof persistSessionUsageUpdate>[0]; type IncrementRunCompactionCountParams = Omit<Parameters<typeof incrementCompactionCount>[0], "tokensAfter"> & { amount?: number; lastCallUsage?: NormalizedUsage; contextTokensUsed?: number; newSessionId?: string; }; export declare function persistRunSessionUsage(params: PersistRunSessionUsageParams): Promise<void>; export declare function incrementRunCompactionCount(params: IncrementRunCompactionCountParams): Promise<number | undefined>; export {};