import { type ElicitRequest, type ElicitResult } from '@modelcontextprotocol/sdk/types.js'; import { type EndpointToolRegistry, type EndpointToolExecutionContext } from '@xopcai/endpoint-tools-client'; import { type ProviderTool } from '@xopcai/endpoint-tools-protocol'; export declare function resourceWithinScope(uri: string, prefix: string): boolean; type ToolPolicy = Omit; export interface DeviceMcpProviderOptions { registry: EndpointToolRegistry; localId: string; title: string; summary: string; server: { command: string; args?: string[]; env?: Record; cwd?: string; } | { url: string; headers?: Record; }; policies: Record; resourcePrefixes?: string[]; durableOperations?: 1; gatewayFormInput?: 1; onElicitation?: (request: ElicitRequest['params'], context: EndpointToolExecutionContext) => Promise; onError?: (error: Error) => void; } /** Runs on a device host. Gateway MCP configuration, credentials and runtime are never imported. */ export declare function connectDeviceMcpProvider(options: DeviceMcpProviderOptions): Promise<{ refresh: () => Promise; close(): Promise; }>; export {};