/** * @license * Copyright 2026 Qwen * SPDX-License-Identifier: Apache-2.0 */ import { type SubagentActivity, type SubagentStatus, type SubagentTask, type SubagentFilter, type SubagentsPage, type SubagentsSnapshot } from './types.js'; export declare class SubagentsLedger { private readonly onChange?; private readonly states; private readonly monitors; private readonly details; private revision; private readonly archived; private archivedCount; private timer?; private closed; constructor(onChange?: ((snapshot: SubagentsSnapshot) => void) | undefined); upsert(value: Omit & Partial>): void; update(id: string, patch: Partial>, event?: Omit): void; append(id: string, kind: SubagentActivity['kind'], text: string): void; result(id: string, status: SubagentStatus, text: string, outputMessage?: string): void; snapshot(): SubagentsSnapshot; touch(): void; get(id: string): SubagentTask | undefined; forgetJoinedTask(id: string): void; page(offset?: number, selectedId?: string, filter?: SubagentFilter): SubagentsPage; dispose(): void; private pushEvent; private trimDetails; private archiveTerminal; private changed; private bytes; }