import React, { type ReactNode } from 'react'; import type { ReactA2uiComponentProps } from '@a2ui/react'; import type { A2UIEngine } from './A2UIRenderer'; /** The engine of the surfaces below, for what in them reaches the host, such as links. */ export declare const A2UIEngineContext: React.Context; type Weighted = { accessibility?: unknown; weight?: unknown; }; type Checked = { isValid?: unknown; validationErrors?: unknown; }; type ButtonProps = Checked & Weighted & { action?: unknown; child?: unknown; variant?: unknown; }; /** * A2UI's Button as Stream's: primary for the main call to action, and borderless as a ghost * button in the accent colour, which the spec means to read as a link, as it does on iOS. */ export declare const A2UIButton: ({ buildChild, context, props, }: ReactA2uiComponentProps) => import("react/jsx-runtime").JSX.Element; type CardProps = Weighted & { child?: unknown; }; /** A2UI's Card: a box of its own in the reply, as Stream's cards are. */ export declare const A2UICard: ({ buildChild, props }: ReactA2uiComponentProps) => import("react/jsx-runtime").JSX.Element; type TextProps = Weighted & { text?: unknown; variant?: unknown; }; /** * A2UI's Text: Markdown rendered as replies' is, or a caption. Its links open the * way the host allows, since the agent writes them, rather than wherever they point. As a * Button's label it is the button's words. */ export declare const A2UIText: ({ props }: ReactA2uiComponentProps) => import("react/jsx-runtime").JSX.Element; type TextFieldProps = Checked & Weighted & { label?: unknown; placeholder?: unknown; setValue?: unknown; value?: unknown; variant?: unknown; }; /** A2UI's TextField as Stream's text input, or a text area for long text. */ export declare const A2UITextField: ({ props }: ReactA2uiComponentProps) => import("react/jsx-runtime").JSX.Element; type ChoicePickerProps = Checked & Weighted & { displayStyle?: unknown; filterable?: unknown; label?: unknown; options?: unknown; setValue?: unknown; value?: unknown; variant?: unknown; }; /** * A2UI's ChoicePicker: Stream's check marks, or chips as Stream's buttons, choosing one option * or several. A filterable one has a search field above its options. */ export declare const A2UIChoicePicker: ({ props, }: ReactA2uiComponentProps) => import("react/jsx-runtime").JSX.Element; type IconProps = Weighted & { name?: unknown; }; /** * A2UI's Icon: the app's own for its name, else Stream's, else the icon font the app loads, if * it said which. An icon none of them draws takes its place but shows nothing, rather than its * name as words. An icon the agent draws as an SVG path shows as it. */ export declare const A2UIIcon: ({ props }: ReactA2uiComponentProps) => import("react/jsx-runtime").JSX.Element; type ModalProps = Weighted & { content: string; trigger: string; }; /** * A Modal that opens as a dialog: focus moves into it and stays there while it is open, Escape * and the backdrop close it, focus goes back to what opened it, and it shows above everything, * whatever the reply's layout. A tap on its trigger opens it, and a Button's own action still * runs; another trigger opens from the keyboard too. */ export declare const A2UIModal: ({ buildChild, context, props, }: ReactA2uiComponentProps) => import("react/jsx-runtime").JSX.Element; /** The basic catalog's components drawn here, by their A2UI type. */ type ImageProps = Weighted & { description?: unknown; fit?: unknown; url?: unknown; variant?: unknown; }; /** * A2UI's Image, loading only what the renderer's `mediaUrl` allows, before it draws, so an * image the agent links to never reaches what the app doesn't want it to. */ export declare const A2UIImage: ({ props }: ReactA2uiComponentProps) => import("react/jsx-runtime").JSX.Element | null; type VideoProps = Weighted & { posterUrl?: unknown; url?: unknown; }; /** A2UI's Video, loading only what the renderer's `mediaUrl` allows. */ export declare const A2UIVideo: ({ props }: ReactA2uiComponentProps) => import("react/jsx-runtime").JSX.Element | null; type AudioPlayerProps = Weighted & { description?: unknown; url?: unknown; }; /** A2UI's AudioPlayer, loading only what the renderer's `mediaUrl` allows. */ export declare const A2UIAudioPlayer: ({ props }: ReactA2uiComponentProps) => import("react/jsx-runtime").JSX.Element | null; export declare const STREAM_BASIC_COMPONENTS: Record) => ReactNode>; export {}; //# sourceMappingURL=basicComponents.d.ts.map