import type { ChatStreamReader } from "./chat-stream.js"; import type { ChatAdapter, SessionReader } from "./chat-adapter.js"; import type { ProjectMcpReader } from "./project-mcp.js"; import { type RelayLogLevel } from "./relay-connection.js"; export interface ConnectorAdapters { sessions: SessionReader; chats: ChatAdapter; mcp?: ProjectMcpReader; stream?: ChatStreamReader; } export interface ConnectorNotification { title: string; message: string; variant: "info" | "warning"; durationMs: number; } export interface ConnectorHost { options: Record; log: (level: RelayLogLevel, message: string, extra?: Record) => Promise; notify: (notification: ConnectorNotification) => Promise; /** * Asks the person at this machine a yes/no question. Pairing uses it to approve a device; * only an explicit `true` counts as consent, so a dismissed dialog rejects. */ confirm: (question: { title: string; message: string; }) => Promise; adapters: () => ConnectorAdapters; } export interface ConnectorHandle { dispose?: () => Promise; } export declare function startConnector(host: ConnectorHost): Promise; //# sourceMappingURL=connector.d.ts.map