UNPKG

react-native-ajora

Version:

The most complete AI agent UI for React Native

49 lines (48 loc) 1.61 kB
import { Part } from "@google/genai"; import { StyleProp, ViewStyle } from "react-native"; import { LightboxProps } from "react-native-lightbox-v2"; export { ActionsProps } from "./Actions"; export { BubbleProps, RenderMessageImageProps, RenderMessageVideoProps, RenderMessageTextProps, } from "./Bubble"; export { ComposerProps } from "./Composer"; export { HeaderProps } from "./Header"; export { InputToolbarProps } from "./InputToolbar"; export { LoadEarlierProps } from "./LoadEarlier"; export { MessageProps } from "./Message"; export { MessageContainerProps } from "./MessageContainer"; export { MessageImageProps } from "./MessageImage"; export { MessageTextProps } from "./MessageText"; export { SendProps } from "./Send"; export type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; export interface LeftRightStyle<T> { left?: StyleProp<T>; right?: StyleProp<T>; } export interface IMessage { _id: string; thread_id: string; role: "user" | "model"; parts: Part[]; createdAt?: string; updatedAt?: string; } /** A function call. */ export interface FunctionCall { id?: string; args?: Record<string, unknown>; name?: string; response?: any; } /** A function response. */ export interface FunctionResponse { id?: string; name?: string; response?: Record<string, unknown>; } export type IChatMessage = IMessage; export interface MessageVideoProps<TMessage extends IMessage> { currentMessage: TMessage; containerStyle?: StyleProp<ViewStyle>; videoStyle?: StyleProp<ViewStyle>; videoProps?: object; lightboxProps?: LightboxProps; }