import type { NodeMeta } from '../canvas/index.js'; /** Asynchronously generate a name for `prompt` and persist it to the node's * meta as `description` — only if the node has none yet (so a later message * never clobbers it). Non-blocking: safe to call from inside a live pi event * loop. Best-effort; swallows all errors. * * `onNamed` (optional) fires with the freshly-persisted meta the moment the * name lands — the canvas-goal-capture naming hook passes a callback that calls * pi.setSessionName(editorLabel(meta)) so the LIVE editor label updates in the * same session, instead of waiting for the next revive/cycle. */ export declare function generateAndPersistName(nodeId: string, prompt: string, onNamed?: (meta: NodeMeta) => void): void;