/** * Format a v2 query result into a plain string for LLM context injection. * * The canonical string rendering lives on the APPLICATION LAYER: every /query * response body carries `llm_prompt`, the whole result rendered as a Markdown * document by the server (the same code on every surface). When this helper * finds it, it returns the server's string verbatim. The client-side * formatting below is only the legacy fallback for responses from servers * that predate `llm_prompt`. * * Accepts: * - The full v2 envelope (`{ success, data, error, meta }`) — auto-unwraps `.data` * - A bare retrieval result (with `chunks` / `graphContext`) * * @example * ```typescript * const response = await client.query({ query: "...", tenantId: "..." }); * console.log(buildString(response)); // the server-rendered llm_prompt, verbatim * ``` */ export declare function buildString(result: any): string;