import type { NativeAccessibilityProps, NativeAudioPlayerComponentProps, NativeButtonComponentProps, NativeButtonVariant, NativeCheckBoxComponentProps, NativeChoicePickerComponentProps, NativeChoicePickerVariant, NativeDateTimeInputComponentProps, NativeDividerComponentProps, NativeHostExtensionComponentProps, NativeHostExtensionRegistration, NativeIconComponentProps, NativeImageComponentProps, NativeImageVariant, NativeSliderComponentProps, NativeTextComponentProps, NativeTextInputComponentProps, NativeTextInputVariant, NativeTextVariant, NativeVideoComponentProps, NativeViewStyle, NativeViewVariant } from "@mcp-native/renderer-core"; import { type ComponentType, type ReactElement, type ReactNode } from "react"; export interface NativeViewComponentProps extends NativeAccessibilityProps { readonly children?: ReactNode; readonly style?: NativeViewStyle; } export interface NativeTabItem { readonly content: ReactNode; readonly title: string; } export interface NativeTabsComponentProps extends NativeAccessibilityProps { readonly accessible: boolean; readonly onSelect: (index: number) => void; readonly selectedIndex: number; readonly tabs: readonly NativeTabItem[]; } export interface NativeModalComponentProps extends NativeAccessibilityProps { readonly content: ReactNode; readonly onRequestClose: () => void; readonly open: boolean; readonly trigger: ReactNode; } /** * Optional locally bundled component overrides for the pinned A2UI style hints. * The renderer selects only these closed keys and still supplies primitive props. */ export interface NativeComponentVariants { readonly View?: Partial>>; readonly Text?: Partial>>; readonly Button?: Partial>>; readonly TextInput?: Partial>>; readonly Image?: Partial>>; readonly ChoicePicker?: Partial>>; } /** Locally bundled components chosen by the host application. */ export interface NativeComponentCatalog { readonly View: ComponentType; readonly Text: ComponentType; readonly Button: ComponentType; readonly TextInput: ComponentType; readonly Image?: ComponentType; readonly Icon?: ComponentType; readonly Divider?: ComponentType; readonly CheckBox?: ComponentType; readonly ChoicePicker?: ComponentType; readonly Slider?: ComponentType; readonly DateTimeInput?: ComponentType; readonly Tabs?: ComponentType; readonly Modal?: ComponentType; readonly Video?: ComponentType; readonly AudioPlayer?: ComponentType; /** Locally compiled semantic extensions created only by the registration helper below. */ readonly hostExtensions?: readonly NativeHostExtensionRegistration[]; /** Optional semantic/style variants; omitted entries fall back to the base primitive. */ readonly variants?: NativeComponentVariants; } /** Maps renderer-selected primitive props into one locally bundled host component. */ export type NativeComponentPropMapper = (props: TrustedProps) => HostProps; /** Adapts trusted MCP Native view props to a host design-system component. */ export declare function createNativeViewAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts trusted MCP Native text props to a host design-system component. */ export declare function createNativeTextAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts trusted MCP Native button props to a host design-system component. */ export declare function createNativeButtonAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts trusted MCP Native text-input props to a host design-system component. */ export declare function createNativeTextInputAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts trusted MCP Native image props to a host image component. */ export declare function createNativeImageAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts a complete, policy-bearing video source to one local media component. */ export declare function createNativeVideoAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts a complete, policy-bearing audio source to one local media component. */ export declare function createNativeAudioPlayerAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** * Registers one locally imported semantic native component. The mapper receives only validated * semantic props, a closed capability grant, accessibility fields, and a validated event seam. */ export declare function createNativeHostExtensionRegistration(manifestInput: unknown, component: ComponentType, mapProps: NativeComponentPropMapper): NativeHostExtensionRegistration; export declare function isNativeHostExtensionRegistration(value: unknown): value is NativeHostExtensionRegistration; /** Internal renderer seam for an opaque, helper-created local registration. */ export declare function renderNativeHostExtensionRegistration(registration: NativeHostExtensionRegistration, props: NativeHostExtensionComponentProps, key: string): ReactElement; /** Adapts a pinned semantic icon name to a host icon component. */ export declare function createNativeIconAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts a trusted divider axis to a host divider component. */ export declare function createNativeDividerAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts trusted checkbox props to a host checkbox component. */ export declare function createNativeCheckBoxAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts trusted choice-picker props to a host selection component. */ export declare function createNativeChoicePickerAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts trusted bounded slider props to a host slider component. */ export declare function createNativeSliderAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts trusted ISO date/time props to a host date/time component. */ export declare function createNativeDateTimeInputAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts trusted tab titles and rendered content to a host tabs component. */ export declare function createNativeTabsAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; /** Adapts trusted modal state and rendered regions to a host modal component. */ export declare function createNativeModalAdapter(component: ComponentType, mapProps: NativeComponentPropMapper): ComponentType; //# sourceMappingURL=component-adapters.d.ts.map