/** * OpencodeEventBridge — event normalization for the opencode SDK platform. * * Translates opencode SDK native Event objects into CanonicalEvents. * Follows the same pattern as PiEventBridge on the Pi side. * * Opencode SDK events are NOT imported here — the normalization function * accepts { type: string; properties?: unknown } which is the structural * contract of every opencode Event variant. * * @module */ import type { CanonicalEvent, CanonicalEventType } from "../../ports/event-bridge.ts"; /** * Map an opencode SDK event type string to a CanonicalEventType. * Unknown or unmapped types resolve to "unknown". */ export declare function mapOpencodeEventType(rawType: string): CanonicalEventType; /** * Normalize a raw opencode SDK event into a CanonicalEvent. * * Uses the structural `{ type; properties? }` contract that every opencode * Event variant satisfies. Unknown event types are mapped to "unknown" * with the raw type preserved for debugging. * * @param rawEvent - The raw event from the opencode SDK. * @returns A normalized CanonicalEvent. */ export declare function normalizeOpencodeEvent(rawEvent: unknown): CanonicalEvent; //# sourceMappingURL=event-bridge.d.ts.map