/**
 * Reset all module state between test cases. Production callers never
 * need this; channels self-dispose when their last peer unregisters.
 */
export declare function resetCoordinatorsForTests(): void;
/**
 * Snapshot of channel/peer/barrier counts across all channels.
 * Useful for asserting cleanup in tests.
 */
export declare function getCoordinatorStatsForTests(): {
  channelCount: number;
  totalPeers: number;
  totalPendingBarriers: number;
};
/**
 * Override the target encoder. Returns a function that restores the
 * previous encoder. Useful when the value type contains unstable
 * references that the default `JSON.stringify`-based encoder cannot
 * key deterministically.
 */
export declare function setTargetEncoderForTests(impl: (value: unknown) => string): () => void;