/**
 * Registers a peer with the broker. Returns an unregister function.
 * @param {InProcessPeer} peer - Peer instance.
 * @returns {() => void} - Unregister function.
 */
export function registerInProcessPeer(peer: InProcessPeer): () => void;
/**
 * Schedules a fan-out of the given message to every registered peer.
 * Each delivery is its own microtask so handlers run in the order peers
 * registered, but never synchronously inside the publish call.
 * @param {import("./types.js").BeaconBroadcastMessage} message - Broadcast message.
 * @returns {void}
 */
export function publishToInProcessPeers(message: import("./types.js").BeaconBroadcastMessage): void;
/**
 * Runs the getInProcessPeerCount helper.
 * @returns {number} - Current peer count. Exposed for diagnostics and tests.
 */
export function getInProcessPeerCount(): number;
/**
 * Defines this typedef.
 */
export type InProcessPeer = {
    _receiveBroadcast: (message: import("./types.js").BeaconBroadcastMessage) => void;
};
//# sourceMappingURL=in-process-broker.d.ts.map