import { DshRemoteRuntimeSecretBroker } from './runtime-secret-broker.js'; import type { DshRemoteRealtimeTransport, DshRemoteResponse, DshRemoteTrustedEventMetadata } from './types.js'; export interface DshRemoteHostChannelManagerOptions { accountId: string; signal?: AbortSignal; profileRef: string; hostClientRef: string; runtimeRef: string; realtime: DshRemoteRealtimeTransport; secretBroker: DshRemoteRuntimeSecretBroker; dispatch: (request: unknown, context: { serviceLeaseGeneration: number; metadata: DshRemoteTrustedEventMetadata; }) => Promise; onProjectionError: (error: unknown) => void; onFatal: (error: unknown) => void; onDiagnostic?: (event: string, fields: Record) => void; } /** * Owns the single account-scoped Runtime channel. The Host subscribes with * generation 0 before registration, then activates the exact positive lease * returned by Realtime. No controller identity or pairing state exists here. */ export declare class DshRemoteHostChannelManager { private readonly options; private readonly controller; private unsubscribe; private target; private lastTransportSequence; private persistedTransportSequence; private outboundTail; private readonly pendingEvents; private readonly requestFragments; private closed; private readonly detachParent; constructor(options: DshRemoteHostChannelManagerOptions); prepare(): Promise; activate(serviceLeaseGeneration: number): void; status(): { runtimeRef: string; serviceLeaseGeneration: number; ready: boolean; }; close(): Promise; publishProjectionEvent(envelope: Record, commandId: string, onTiming?: (timing: { queueMs: number; publishMs: number; completed: boolean; }) => void): Promise; private consume; private handle; private diagnostic; private publishPayload; private persistCursor; } //# sourceMappingURL=channel-manager.d.ts.map