import type { Activity } from '../../shared/activity.js'; import type { AgentMessageDirection, AgentMessageHistoryPage, AgentMessageRecord } from '../../shared/messages.js'; import type { InboxItem } from '../../shared/inbox.js'; import { MessageStore } from '../storage/schema/message.store.js'; export interface MessageListInput { before?: string; channel?: string; direction?: AgentMessageDirection; limit?: number; since?: string; } export interface MessageSearchInput { before?: string; channel?: string; keywords: string[]; limit?: number; since?: string; } export declare class MessageService { private readonly store; constructor(agentId: string, store?: MessageStore); recordInboxItem(item: InboxItem): Promise<{ inserted: boolean; record: AgentMessageRecord; } | undefined>; recordOutboxActivity(activity: Activity): Promise; list(input?: MessageListInput): Promise; listLatest(input: { limit: number; }): Promise; latestMessageAt(): Promise; search(input: MessageSearchInput): Promise; hasInboxItem(itemId: string): Promise; } export declare function messageServiceForAgent(agentId: string): MessageService; export declare function normalizeSearchKeywords(keywords: string[]): string[]; //# sourceMappingURL=message.service.d.ts.map