declare global {
    var meshLoadCount: number | null;
}
import { TNetworkId_S } from '@flux/shared/types';
type TOptions = {
    port?: number;
    redisConnectionString?: string;
    hardcodedNetworkCredentials?: Map<TNetworkId_S, string>;
};
export declare class FluxMeshServer {
    private readonly optionsOrPort?;
    private readonly redisConnection;
    private readonly onReadyListeners;
    private readonly bunServer;
    private readonly globalChannelPubsub;
    private readonly channelManager;
    private readonly agentManager;
    constructor(optionsOrPort?: (TOptions | number) | undefined);
    onReady(fn: () => void): void;
    /**
     * Gracefully shuts down the server.
     */
    stop(): Promise<void>;
}
export {};
