import type { NodeIdentity, NodeManifest, NodeRole } from './types.js'; export interface IdentityOptions { storageDir?: string; displayName?: string; role?: NodeRole; } /** Load the persisted identity or create + persist a fresh one. */ export declare function loadOrCreateIdentity(opts?: IdentityOptions): NodeIdentity; export interface ManifestInputs { version: string; capabilities: NodeManifest['capabilities']; workers: string[]; commands: string[]; providers: string[]; } /** Build the manifest advertised to peers + the mesh map. */ export declare function buildManifest(identity: NodeIdentity, inputs: ManifestInputs): NodeManifest; /** Total memory in bytes — used by telemetry + routing. */ export declare function totalMemoryBytes(): number;