import type { EventComponent } from './types.js'; export interface BoundEventSource { component: EventComponent; path: string; node_id?: string; stream_id?: string; } export declare function bindDaemonEventSource(): void; export declare function bindBrokerEventSource(nodeId: string): void; export declare function webStreamId(host: string, port: number): string; export declare function bindWebEventSource(host: string, port: number): void; export declare function eventSource(): BoundEventSource | undefined; /** Test-only: clear the process-global binding. A single test process can * legitimately play several components in sequence (an in-process revive binds * a broker source via host.ts's bind-if-unbound; a later daemon-tick test then * inherits it and trips emit's cross-node guard). Production processes bind * exactly once and never reset. */ export declare function resetEventSourceForTests(): void;