import type { SerializableRecord } from '../backend-contract/primitives.js'; import type { ElectronConnectionEventsSubscribeResponseV2, ElectronConnectionLifecycleEventV2 } from './protocol.js'; export interface ElectronConnectionEventCleanupReceipt { readonly state: 'released' | 'release-failed'; readonly failureCount: number; } export type DecodedConnectionEventStreamItem = { readonly kind: 'value'; readonly value: ElectronConnectionLifecycleEventV2; } | { readonly kind: 'overflow'; readonly policy: 'latest' | 'drop-oldest' | 'drop-newest' | 'error'; readonly droppedItems: number; readonly droppedBytes: number; readonly replacedItems: number; } | { readonly kind: 'terminal'; readonly reason: 'closed' | 'overflow' | 'source-failed' | 'owner-released' | 'connection-lost' | 'service-changed' | 'operation-aborted' | 'operation-timed-out'; readonly droppedItems: number; readonly droppedBytes: number; readonly replacedItems: number; }; export declare function decodeConnectionEventsSubscribeResponse(payload: SerializableRecord): ElectronConnectionEventsSubscribeResponseV2; export declare function decodeConnectionEventCleanupReceipt(payload: SerializableRecord): ElectronConnectionEventCleanupReceipt; export declare function decodeConnectionEventStreamItem(item: SerializableRecord): DecodedConnectionEventStreamItem; //# sourceMappingURL=connection-event-codec.d.ts.map