{ $$typeof: typeof JSX_ELEMENT; children: unknown[]; props: P; type: CardComponentFunction; } /** Union of all element types that can be produced by chat components */ type ChatElement = CardJSXElement | CardElement | TextElement | ButtonElement | LinkButtonElement | LinkElement | ImageElement | DividerElement | ActionsElement | SectionElement | FieldsElement | FieldElement | ModalElement | TextInputElement | SelectElement | ExternalSelectElement | SelectOptionElement | RadioSelectElement | TableElement; interface CardComponent { (options?: CardOptions): CardElement; (props: CardProps): ChatElement; } interface TextComponent { (content: string, options?: { style?: TextStyle; }): TextElement; (props: TextProps): ChatElement; } interface ButtonComponent { (options: ButtonOptions): ButtonElement; (props: ButtonProps): ChatElement; } interface LinkButtonComponent { (options: LinkButtonOptions): LinkButtonElement; (props: LinkButtonProps): ChatElement; } interface CardLinkComponent { (options: { url: string; label: string; }): LinkElement; (props: CardLinkProps): ChatElement; } interface ImageComponent { (options: { url: string; alt?: string; }): ImageElement; (props: ImageProps): ChatElement; } interface FieldComponent { (options: { label: string; value: string; }): FieldElement; (props: FieldProps): ChatElement; } interface DividerComponent { (): DividerElement; (props: DividerProps): ChatElement; } interface SectionComponent { (children: CardChild[]): SectionElement; (props: ContainerProps): ChatElement; } interface ActionsComponent { (children: (ButtonElement | LinkButtonElement | SelectElement | RadioSelectElement)[]): ActionsElement; (props: ContainerProps): ChatElement; } interface FieldsComponent { (children: FieldElement[]): FieldsElement; (props: ContainerProps): ChatElement; } interface ModalComponent { (options: ModalOptions): ModalElement; (props: ModalProps): ChatElement; } interface TextInputComponent { (options: TextInputOptions): TextInputElement; (props: TextInputProps): ChatElement; } interface SelectComponent { (options: SelectOptions): SelectElement; (props: SelectProps): ChatElement; } interface ExternalSelectComponent { (options: ExternalSelectOptions): ExternalSelectElement; (props: ExternalSelectProps): ChatElement; } interface SelectOptionComponent { (options: { label: string; value: string; description?: string; }): SelectOptionElement; (props: SelectOptionProps): ChatElement; } interface RadioSelectComponent { (options: RadioSelectOptions): RadioSelectElement; (props: SelectProps): ChatElement; } interface TableComponent { (options: { headers: string[]; rows: string[][]; }): TableElement; (props: TableProps): ChatElement; } /** * Type guard to check if props match CardLinkProps */ declare function isCardLinkProps(props: CardJSXProps): props is CardLinkProps; /** * JSX factory function (used by the JSX transform). * Creates a lazy JSX element that will be resolved when needed. */ declare function jsx
(type: CardComponentFunction, props: P & { children?: unknown; }, _key?: string): CardJSXElement
; /** * JSX factory for elements with multiple children. */ declare function jsxs
(type: CardComponentFunction, props: P & { children?: unknown; }, _key?: string): CardJSXElement
; /** * Development JSX factory (same as jsx, but called in dev mode). */ declare const jsxDEV: typeof jsx; /** * Fragment support (flattens children). */ declare function Fragment(props: { children?: unknown; }): CardChild[]; /** * Convert a JSX element tree to a CardElement. * Call this on the root JSX element to get a usable CardElement. */ declare function toCardElement(jsxElement: unknown): CardElement | null; declare function toModalElement(jsxElement: unknown): ModalElement | null; /** * Check if a value is a JSX element (from our runtime or React). */ declare function isJSX(value: unknown): boolean; declare namespace JSX { type Element = ChatElement; type IntrinsicElements = {}; interface IntrinsicAttributes { key?: string | number; } interface ElementChildrenAttribute { children: {}; } } export { type DividerProps as $, type ActionsComponent as A, type ButtonComponent as B, type CardElement as C, type DividerComponent as D, type ExternalSelectComponent as E, type FieldComponent as F, type LinkButtonOptions as G, type LinkElement as H, type ImageComponent as I, type SectionElement as J, type TableAlignment as K, type LinkButtonComponent as L, type ModalComponent as M, type TableElement as N, type TableOptions as O, type TextElement as P, type TextStyle as Q, type RadioSelectComponent as R, type SectionComponent as S, type TextComponent as T, type ButtonProps as U, type CardJSXElement as V, type CardJSXProps as W, type CardLinkProps as X, type CardProps as Y, type ChatElement as Z, type ContainerProps as _, type CardChild as a, type ExternalSelectProps as a0, type FieldProps as a1, type ImageProps as a2, type LinkButtonProps as a3, type ModalProps as a4, type SelectOptionProps as a5, type SelectProps as a6, type TextInputProps as a7, type TextProps as a8, type ExternalSelectElement as a9, type ExternalSelectOptions as aa, type ModalChild as ab, type ModalElement as ac, type ModalOptions as ad, type RadioSelectElement as ae, type RadioSelectOptions as af, type SelectElement as ag, type SelectOptionElement as ah, type SelectOptions as ai, type TextInputElement as aj, type TextInputOptions as ak, type TableProps as al, type TableComponent as am, isCardLinkProps as an, jsx as ao, jsxs as ap, jsxDEV as aq, Fragment as ar, JSX as as, type CardComponent as b, cardChildToFallbackText as c, type CardLinkComponent as d, type FieldsComponent as e, fromReactElement as f, isJSX as g, Table as h, isCardElement as i, toModalElement as j, fromReactModalElement as k, isModalElement as l, type SelectComponent as m, type SelectOptionComponent as n, type TextInputComponent as o, type ActionsElement as p, type ButtonElement as q, type ButtonOptions as r, type ButtonStyle as s, toCardElement as t, type CardOptions as u, type DividerElement as v, type FieldElement as w, type FieldsElement as x, type ImageElement as y, type LinkButtonElement as z };