import type { ToolDefinition } from "../pi.js"; import type { CombinerConnection, ResourceSummary } from "./connection.js"; import type { ServerFilter } from "./config-ladder.js"; /** Ported verbatim from pi-mcp-adapter's resource-tools.ts (MIT, © 2026 Nico Bailon). */ export declare function resourceNameToToolName(name: string): string; 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; /** Attribute a resource to an upstream server for filtering: ui:// URIs carry the * server as the host component (ui://todoist/…); otherwise fall back to the name's * leading word before a dash/underscore. */ export declare function resourceServer(r: ResourceSummary): string | undefined; /** Apply the project server filter to a resource list (mirrors tool filtering; * attribution by uri host, with `_`/`-` name-prefix fallback for underscore-named * servers whose resources carry the full prefixed name). */ export declare function filterResources(resources: ResourceSummary[], filter: ServerFilter | undefined): ResourceSummary[]; /** Discover resources and register one read_* tool each. Idempotent; returns count. */ export declare function syncResourceTools(register: (tool: ToolDefinition) => void, connection: CombinerConnection, registered: Set, filter: ServerFilter | undefined, notify: (message: string, level: "info" | "warn" | "error") => void): Promise; //# sourceMappingURL=resources.d.ts.map