/** * Conversation-list wire client for the SSE/Guide chat — the ONE place the * `ChatRuntime.endpoints.chatConversationsUrl` contract is spelled out: * * GET `?status=active|archived&limit=&cursor=&search=` * → route-base envelope `{ data: { dialogs, nextCursor } }` * PATCH `/` body `{ title }` (rename) * PATCH `/` body `{ archived: true }` (archive) * PATCH `/` body `{ archived: false }` (restore) * * Goes through `embedAuthedFetch` with its DEFAULT credentials mode — the * hub identifies anonymous visitors with an httpOnly cookie, and * `same-origin` is exactly what carries it. Never override `credentials`. * * Wire rows are mapped to `DialogItem`; the ISO `timestamp` becomes a * `Date` so the list's Today/Yesterday/Older grouping is deterministic. */ import type { FetchDialogsParams, FetchDialogsResult } from '../types/unified-chat-state.types'; export type ChatConversationStatus = 'active' | 'archived'; export interface ChatConversationsApi { fetchDialogs(params: FetchDialogsParams & { status: ChatConversationStatus; }): Promise; renameDialog(id: string, title: string): Promise; archiveDialog(id: string): Promise; unarchiveDialog(id: string): Promise; } export declare function createChatConversationsApi(baseUrl: string): ChatConversationsApi; //# sourceMappingURL=chat-conversations-api.d.ts.map