import type { A2uiSurface } from "@mcp-native/a2ui/legacy"; import type { McpNativeAction, McpToolCallResult } from "@mcp-native/core"; import { type ReactElement } from "react"; import type { NativeComponentCatalog } from "./component-adapters.js"; import type { NativeElement } from "./index.js"; export type { NativeComponentName, NativeElement } from "./index.js"; /** @deprecated Use `A2uiV1NativeSurface` and its official action envelope handler. */ export type NativeActionHandler = (action: McpNativeAction) => void; /** @deprecated Use `A2uiV1NativeSurface` renderer-local data-model handling. */ export type NativeBindingChangeHandler = (binding: string, value: string) => void; /** @deprecated Use `A2uiV1NativeSurfaceProps`. */ export interface McpNativeSurfaceProps { readonly surface: A2uiSurface; readonly components: NativeComponentCatalog; readonly onAction: NativeActionHandler; readonly onBindingChange?: NativeBindingChangeHandler; } /** @deprecated Use an application-owned A2UI v1 action transport. */ export interface McpNativeDispatcher { dispatch(action: McpNativeAction): Promise; } /** @deprecated Use an application-owned A2UI v1 action transport. */ export interface McpNativeActionDispatcherOptions { readonly onError: (error: unknown) => void; readonly onResult?: (result: McpToolCallResult) => void; } /** @deprecated Use `createA2uiV1NativeRenderPlan`. */ export declare function createNativeRenderPlan(surface: A2uiSurface): NativeElement; /** @deprecated Use `A2uiV1NativeSurface`. */ export declare function useNativeRenderPlan(surface: A2uiSurface): NativeElement; /** @deprecated Use an application-owned A2UI v1 action transport. */ export declare function useMcpNativeActionDispatcher(dispatcher: McpNativeDispatcher, options: McpNativeActionDispatcherOptions): NativeActionHandler; /** @deprecated Use `A2uiV1NativeSurface`. */ export declare function McpNativeSurface({ surface, components, onAction, onBindingChange, }: McpNativeSurfaceProps): ReactElement; //# sourceMappingURL=legacy.d.ts.map