/** * In-memory (optionally persisted) record of generations performed this * session. Powers the QoL tools usage_summary and list_recent_generations, * and surfaces the last-known balance without spending a credit. * * Persistence is opt-in via MYARCHITECTAI_STATE_FILE; otherwise history lives * for the lifetime of the server process (one MCP session). */ export interface GenerationRecord { id: number; tool: string; createdAt: string; output: string[]; cost: number; balance: number; } export interface UsageSummary { totalGenerations: number; totalCost: number; lastKnownBalance: number | null; byTool: Record; since: string | null; } export declare class SessionStore { #private; constructor(stateFile?: string); /** Load persisted history if a state file is configured and present. */ init(): Promise; record(entry: { tool: string; output: string[]; cost: number; balance: number; }): Promise; /** Most recent generations first. */ recent(limit?: number): GenerationRecord[]; summary(): UsageSummary; } //# sourceMappingURL=session.d.ts.map