import type { SuperagentToolCall } from '../types'; /** * Pure logic for the build_mode blueprint card — native port of the web * AgentBlueprint parsing (frontend/apps/builder/.../agent-blueprint/ * useAgentBlueprint.ts + AgentBlueprint.utils.ts). */ export type AgentBlueprintArgs = { agent_name?: string; persona?: string; mission?: string; operating_rules?: string[]; data_model?: string[]; capabilities?: string[]; connectors?: string[]; skills?: string[]; automations?: string[]; memory?: string; channels?: string[]; knowledge?: string[]; coverage_notes?: string; build_sequence?: string[]; }; /** A building block: either a list of items or a single prose string. */ export type BlueprintBlock = { key: string; label: string; items?: string[]; prose?: string; }; /** * The blueprint is generated by the planner model inside the build_mode tool * and returned in the result as {blueprint, markdown}. Fall back to the tool * args for older payloads. A non-empty result that won't parse is a * truncated/garbled blueprint — the widget shows a graceful note. */ export declare function parseBlueprint(toolCall: SuperagentToolCall): AgentBlueprintArgs; /** * Building blocks, in the web's priority order. Only non-empty ones render as * pills; the rationale for anything intentionally omitted lives in Coverage * notes — no dead "Not needed" rows. */ export declare function buildBlueprintBlocks(args: AgentBlueprintArgs): BlueprintBlock[]; /** * A genuine blueprint always carries agent_name, so a completed call with no * content is an anomaly (truncated payload or a call that never produced * results) — the widget shows a note instead of a blank card. */ export declare function hasBlueprintContent(args: AgentBlueprintArgs, blocks: BlueprintBlock[]): boolean; /** * Blueprint items arrive as "Title — long description" strings. Split on the * first dash (em, en, or hyphen) padded by whitespace, so an inline hyphen * (e.g. "key fields: start-end") is never treated as the separator. */ export declare function splitHeadline(text: string): { title: string; description: string; }; //# sourceMappingURL=agentBlueprintUtils.d.ts.map