import type { Schema, Data, RenderOptions, RenderResponse, PatchResponse, PatchOperation, ValidationResult } from "./types.js"; /** * MeissaServer provides methods for MCP server developers to return * Meissa UI content from their tools. */ export declare class MeissaServer { /** * Render a Meissa UI schema with data into an MCP content response. * * @param schema - Array of Meissa UI components * @param data - Data object for binding resolution * @param opts - Optional render options (fallback override, theme) * @returns MCP content response with type "meissa" */ render(schema: Schema, data?: Data, opts?: RenderOptions): RenderResponse; /** * Create a patch response targeting a previous tool call. * * @param target - The tool_call_id to patch * @param patches - Array of JSON Patch (RFC 6902) operations * @returns MCP content response with type "meissa/patch" */ patch(target: string, patches: PatchOperation[]): PatchResponse; /** * Convert a Meissa schema + data to a markdown string. * * @param schema - Array of Meissa UI components * @param data - Data object for binding resolution * @returns Markdown string representation */ toMarkdown(schema: Schema, data?: Data): string; /** * Validate a Meissa schema. * * @param schema - The schema to validate * @returns Validation result with valid flag and any errors */ validate(schema: unknown): ValidationResult; }