import type { PrivateKey } from "@libp2p/interface"; import { CID } from "multiformats/cid"; export declare const MAX_CONNECTIONS = 512; export declare const DISCOVERY_TOPIC = "pokapali._peer-discovery._p2p._pubsub"; export declare const SIGNALING_TOPIC = "/pokapali/signaling"; export declare const PROVIDE_INTERVAL_MS: number; export declare const LOG_INTERVAL_MS = 30000; export declare const CAPS_INTERVAL_MS = 30000; export declare const HEALTH_CHECK_MIN_MS = 60000; export declare const HEALTH_CHECK_MAX_MS = 90000; export declare const DEFAULT_WS_PORT = 4003; export declare const RELAY_PEER_TAG = "pokapali-relay-peer"; export declare const RELAY_PEER_TAG_VALUE = 100; export declare const BOOTSTRAP_ADDRS: string[]; export declare function appIdToCID(appId: string): Promise; export declare function networkCID(): Promise; /** * Derive an HTTPS URL from a WSS multiaddr. * e.g. /dns4/1-2-3-4.xxx.libp2p.direct/tcp/4003/tls/ws * → https://1-2-3-4.xxx.libp2p.direct:4443 */ export declare function deriveHttpUrl(wssMultiaddr: string, httpsPort: number): string | undefined; /** * Derive httpUrl from the TLS cert SAN and relay's * public IP. Used when SNI multiaddr isn't registered * yet at cert provision time. */ export declare function deriveHttpUrlFromCert(certPem: string, multiaddrs: string[], httpsPort: number): string | undefined; export declare function loadOrCreateKey(storagePath: string): Promise; /** * Wrap FsBlockstore to fix blockstore-fs@3 get() * returning AsyncGenerator instead of Uint8Array. */ export declare function openBlockstore(storagePath: string): Promise<{ blockstore: Record; close: () => Promise; }>; //# sourceMappingURL=relay-utils.d.ts.map