import type { MeissaSchema, MeissaAppOptions, MeissaAppResult } from "./types.js"; /** * Creates a self-contained Meissa app as an HTML string. * * This is the main entry point for the MCP Apps adapter. It takes a Meissa * schema and options, and returns a complete HTML page that can be served * as a sandboxed iframe resource in the MCP Apps protocol. * * @param schema - Meissa schema array describing the UI * @param options - Optional configuration (theme, title, dimensions) * @returns Object with `content` (HTML string) and `mimeType` ("text/html") * * @example * ```typescript * import { createMeissaApp } from "@meissa_a/meissa/apps"; * * const result = createMeissaApp( * [ * ["heading", "Dashboard"], * ["text", "Welcome, {{user.name}}!"], * ["btn", { label: "Refresh", action: "refresh" }], * ], * { title: "My Dashboard", theme: { primary: "#3b82f6" } } * ); * * // result.content -> complete HTML string * // result.mimeType -> "text/html" * ``` */ export declare function createMeissaApp(schema: MeissaSchema, options?: MeissaAppOptions): MeissaAppResult;