import type { MemorySummary, ResolvedFunction, ResolvedReference, ResolvedSkill } from "../types.ts"; import type { FnState } from "../function/runtime-state.ts"; type XmlChild = XmlNode | string; export type XmlNode = { tag: string; children: XmlChild[]; }; type CdataNode = { cdata: string; }; export declare function escapeXml(text: string): string; export declare function xml(tag: string, children: (XmlChild | CdataNode)[]): XmlNode; export declare function renderXml(node: XmlNode, indent?: number): string; export interface PromptSource { prompt: string; } export interface AgentPromptOptions { subagents?: Array<{ id: string; name: string; description: string; }>; publicAgents?: Array<{ id: string; name: string; description: string; }>; references?: ResolvedReference[]; } export declare function buildAgentPrompt(role: PromptSource, skills: ResolvedSkill[], options?: AgentPromptOptions): string; export declare function buildFunctionBlock(functions: ResolvedFunction[]): string; export declare function buildSkillBlock(skills: ResolvedSkill[]): string; export declare function buildReferenceBlock(references: ResolvedReference[]): string; export declare function buildMemoryBlock(memories: MemorySummary[]): string; export declare function buildSubagentBlock(subagents: Array<{ id: string; name: string; description: string; }>): string; export declare function buildPublicAgentsBlock(agents: Array<{ id: string; name: string; description: string; }>): string; export declare function buildFunctionStateBlock(fnName: string, s: FnState, todosRemaining: number): string; export declare function buildActiveArtifactBlock(name: string, content: string): string; export declare function buildAvailableFunctionsBlock(functions: ResolvedFunction[]): string; export {}; //# sourceMappingURL=builder.d.ts.map