import { z } from "zod"; import { type ChatOperation, type ChatStreamTarget, type VoiceTarget } from "@openremotecode/protocol"; import { type ChatAdapter } from "../chat-adapter.js"; import type { ChatStreamReader } from "../chat-stream.js"; import { WorkspaceRegistry, type Workspace } from "../chat/workspace.js"; import type { OpenCodeClient } from "./client.js"; import type { ChatListReader } from "../chat-list-stream.js"; declare const session: z.ZodObject<{ id: z.ZodString; title: z.ZodOptional; parentID: z.ZodOptional; fork: z.ZodOptional>; agent: z.ZodOptional; model: z.ZodOptional; }, z.core.$loose>>; time: z.ZodObject<{ updated: z.ZodNumber; idle: z.ZodOptional; viewed: z.ZodOptional; }, z.core.$strip>; outcome: z.ZodOptional>; location: z.ZodObject<{ directory: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export declare function toChatSummary(value: z.infer, status?: "idle" | "busy" | "retry" | "unknown"): { id: string; title: string; updatedAt: number; parentId?: string | undefined; activity?: { status: "unknown" | "busy" | "idle" | "retry"; idleAt?: number | undefined; viewedAt?: number | undefined; outcome?: "failed" | "succeeded" | "interrupted" | undefined; } | undefined; }; export declare class OpenCodeChatAdapter implements ChatAdapter, ChatStreamReader { #private; get capabilities(): readonly string[]; readonly listReader: ChatListReader; constructor(client: OpenCodeClient, directory: string, additionalDirectories?: unknown, registry?: WorkspaceRegistry, localSessions?: (workspace: Workspace) => readonly string[] | Promise); observeEvent(event: { type: string; data?: Record; }): void; execute(operation: ChatOperation, body: Record, cancellation?: AbortSignal): Promise; authorizeVoice(target: VoiceTarget, signal: AbortSignal): Promise; watchChat(target: ChatStreamTarget, signal: AbortSignal, changed: (reset: boolean) => void): Promise; readChat(target: ChatStreamTarget, signal: AbortSignal): Promise; } export {}; //# sourceMappingURL=chat-adapter.d.ts.map