import { Actions, OmnicastPayload } from '../../../types/index.js'; /** * Finds the omnicast action whose name matches an incoming envelope, * walking nested classes and namespaces (e.g. `Omnicast.Cat.Adopted`) up * to a small fixed depth. Non-omnicast members and unknown names resolve * to `null`, so the configured actions act as an allow-list for what a * remote peer may dispatch into the local Boundary. */ export declare function lookup(actions: Actions, name: string, depth?: number): null | OmnicastPayload; /** * Splits the desired tag set against the tags the server currently holds * for the connection, yielding the mutations required to align the server. * Used after every `connected` event so tag mutations survive the * automatic `EventSource` reconnect, which reverts the server to the * query-string tags. */ export declare function reconcile(desired: ReadonlySet, held: readonly string[]): { add: string[]; remove: string[]; }; /** * Builds the `/sse` address, appending the initial tags as a query string * when any are configured. */ export declare function address(url: string, tags: ReadonlySet): string; /** * Decides whether an arriving envelope is still deliverable to this * client: the envelope's audience tags (embedded at dispatch time) must * **all** be held by the client's current tag set. The server applied the * same rule at send time, but the client's tags may have changed while * the event was in flight — a downgrade racing an in-flight `vip` * event — so the receiving side re-validates against its live set * and quietly drops envelopes it no longer qualifies for. */ export declare function eligible(required: undefined | readonly string[], held: ReadonlySet): boolean; /** * Parses an SSE `data` field, absorbing malformed JSON from a misbehaving * server into a logged `null` instead of an uncaught listener error. */ export declare function parse(data: string): null | T;