import type { ChatStorage } from "./chat-storage.js"; export { ChatApiError } from "./chat-api-errors.js"; import type { ChatStreamEvent, ChatApiSuccess, ChatMessageInput, ChatMessagesInput, ChatSendInput, ChatSendResult, ChatThreadInput, CreateChatThreadInput, ListChatInput } from "./chat-api-types.js"; import type { ChatMessage, ChatThread } from "./types/chat.js"; export interface ChatApiServiceOptions { storage: ChatStorage; root?: string; now?: () => string; } export declare class ChatApiService { private readonly storage; private readonly root; private readonly now; constructor(options: ChatApiServiceOptions); createThread(input: CreateChatThreadInput): Promise>; listThreads(input: ListChatInput): Promise>; getThread(input: ChatThreadInput): Promise>; listMessages(input: ChatMessagesInput): Promise>; createMessage(input: ChatMessageInput): Promise>; send(input: ChatSendInput): Promise>; stream(input: ChatMessagesInput): Promise>; private persistMessage; private listAllStoredMessages; private listAllContinuityMessages; }