import { Stream } from '@olane/o-config'; import { oAddress } from '../router/o-address.js'; import { oResponse } from '../connection/o-response.js'; import { CID } from 'multiformats'; import { oObject } from '../core/o-object.js'; export declare class CoreUtils extends oObject { static generatePeerId(): Promise; static doHealthCheck(address: oAddress, node: any): Promise; static healthCheck(config: { type?: 'leader' | 'parent' | 'child'; address?: oAddress; node: any; timeout?: number; }): Promise; static generatePrivateKey(seed: string): Promise; /** * Convert any user phrase to exactly 32 bytes for Ed25519 key generation. * This function uses SHA-256 hashing to ensure: * - Deterministic: Same phrase always produces same seed * - Uniform distribution: Good entropy even for weak phrases * - Exactly 32 bytes: Meets Ed25519 cryptographic requirements */ static phraseToSeedBytes(phrase: string): Uint8Array; static phraseToSeed(phrase: string): string; static childAddress(parentAddress: oAddress, childAddress: oAddress): oAddress; /** * Sends a response through a stream using length-prefixed encoding * Uses lpStream for proper message boundaries (libp2p v3 best practice) * * @param response - The response to send * @param stream - The stream to send the response through */ static sendResponse(response: oResponse, stream: Stream): Promise; static toCID(data: any): Promise; } //# sourceMappingURL=core.utils.d.ts.map