import type { AgentClient } from '../agent.js'; import type { InboxResponse, MessageWithMeta, SendDmResponse } from '../types.js'; export interface Message { id: string; sender: string; channel?: string; text: string; createdAt: string; threadId?: string | null; } export type MessageCallback = (message: Message) => void | Promise; export interface RelayConfig { agentClient: AgentClient; } export interface RelayLike { readonly agents: AgentClient; post(channel: string, text: string): Promise; send(toAgent: string, text: string): Promise; reply(messageId: string, text: string): Promise; inbox(): Promise; onMessage(cb: MessageCallback): () => void; } //# sourceMappingURL=types.d.ts.map