import type { ResourceSummary } from "./types.js"; export declare const MAX_RESULT_CHARS: number; export declare const MCP_APP_MIME = "text/html;profile=mcp-app"; /** True for interactive ext-apps resources: read_* returns their markup AND * surfaces the combiner UI-host URL (which serves the live widget). */ export declare function isInteractiveResource(r: ResourceSummary): boolean; /** Platform browser open — best-effort; failures are fine (the URL is in the * result text anyway). Spawned detached so pi退出 doesn't kill the browser. */ export declare function openInBrowser(url: string): void; /** The ui:// resource a tool result carries (port of the adapter's * getToolUiResourceUri): `_meta["ui/resourceUri"]` or `_meta.ui.resourceUri`. */ export declare function toolUiResourceUri(result: unknown): string | undefined; /** MCP readResource result → guarded plain text: text contents pass through * (pretty-printed when small JSON; with the shared size guard), images become * markers, base64 blobs become byte notes. */ export declare function renderResourceResult(result: unknown): string; //# sourceMappingURL=widget-support.d.ts.map