import { type ConnectorCredentialOutcome, type ConnectorIdentity, type ConnectorPublicIdentity, type EncryptedRelayEnvelope } from "@openremotecode/protocol"; import { type ChatAdapter, type SessionReader } from "./chat-adapter.js"; import { type ProjectMcpReader } from "./project-mcp.js"; import { type ChatStreamReader } from "./chat-stream.js"; import { type VoiceEngine } from "./voice/hex-engine.js"; interface CommandDispatcherOptions { connectorIdentity: ConnectorIdentity; trustedClient: ConnectorPublicIdentity; sessions: SessionReader; chats?: ChatAdapter; mcp?: ProjectMcpReader; stream?: ChatStreamReader; voice?: VoiceEngine; now?: () => number; log?: (level: "debug" | "info" | "warn", message: string, extra?: Record) => void; } export declare class CommandDispatcher { #private; get capabilities(): string[]; constructor(options: CommandDispatcherOptions); /** * Binds the dispatcher to a connection epoch, or to none once the peer goes * away. Sequence numbers restart per epoch, so the window and the outgoing * counter reset together; the mutation journal deliberately survives, so a * client retrying across a reconnect does not cause a second execution. * Responses from a previous epoch cannot be reused in the new one. */ setEpoch(epoch: string | undefined): void; /** * Records the outcome of a credential renewal for delivery to the client. It is held * until a client is actually connected, and a newer outcome replaces an undelivered one. */ reportCredentialRenewal(outcome: ConnectorCredentialOutcome): void; attachRelay(send: (envelope: EncryptedRelayEnvelope) => boolean): () => void; dispose(): void; handle(envelope: unknown): Promise; } export {}; //# sourceMappingURL=command-dispatcher.d.ts.map