/** * Channel Inbox 管理 * * P2-13: 实现消息收件箱管理 * * 功能: * - 消息存储和检索 * - 优先级排序 * - 过期清理 * - 容量限制 */ import type { ChannelMessage, InboxStrategy } from './channel-types.js'; export declare class AgentInbox { private messages; private strategy; constructor(strategy?: InboxStrategy); /** * 添加消息 */ add(message: ChannelMessage): void; /** * 获取消息(按优先级排序) */ get(limit?: number): ChannelMessage[]; /** * 移除消息 */ remove(messageId: string): void; /** * 清空收件箱 */ clear(): void; /** * 获取消息数量 */ size(): number; /** * 强制执行限制 */ private enforceLimits; /** * 清理过期消息 */ private cleanupExpired; } /** * Inbox 管理器 */ export declare class InboxManager { private inboxes; private defaultStrategy; constructor(defaultStrategy?: InboxStrategy); /** * 获取或创建 Inbox */ getInbox(agentId: string, strategy?: InboxStrategy): AgentInbox; /** * 移除 Inbox */ removeInbox(agentId: string): void; /** * 获取所有 Inbox */ getAllInboxes(): Map; /** * 清空所有 Inbox */ clearAll(): void; } //# sourceMappingURL=channel-inbox.d.ts.map