import * as react_jsx_runtime0 from "react/jsx-runtime"; import React from "react"; import { ViewStyle } from "react-native"; //#region src/components/CopilotChat.d.ts interface CopilotChatProps { /** Agent ID to connect to. Defaults to 'default'. */ agentName?: string; /** Placeholder text for the input field. */ placeholder?: string; /** Suggestion pills shown in the empty state. */ initialMessages?: string[]; /** Title shown when there are no messages. */ emptyStateTitle?: string; /** Subtitle shown when there are no messages. */ emptyStateSubtitle?: string; /** Title for the optional header bar. */ headerTitle?: string; /** Whether to show the header bar. Defaults to true. */ showHeader?: boolean; /** Style override for the outermost container. */ style?: ViewStyle; /** Style override for the message list container. */ messageContainerStyle?: ViewStyle; /** Style override for the input bar container. */ inputContainerStyle?: ViewStyle; /** Callback fired when the user sends a message. */ onSendMessage?: (text: string) => void; /** Custom FlatList component (e.g. BottomSheetFlatList for use inside a bottom sheet). */ FlatListComponent?: React.ComponentType; /** When true, skip the KeyboardAvoidingView wrapper (useful when a parent already handles keyboard). */ disableKeyboardAvoiding?: boolean; } /** * Full-screen chat UI component for React Native. * * Connects to a CopilotKit agent via `useAgent` and renders messages * using platform-appropriate AssistantMessage / UserMessage components. * * Usage: * ```tsx * * ``` */ declare function CopilotChat({ agentName, placeholder, initialMessages, emptyStateTitle, emptyStateSubtitle, headerTitle, showHeader, style, messageContainerStyle, inputContainerStyle, onSendMessage, FlatListComponent, disableKeyboardAvoiding }: CopilotChatProps): react_jsx_runtime0.JSX.Element; //#endregion //#region src/components/CopilotModal.d.ts interface CopilotModalProps { /** Controlled visibility — when true the sheet opens, when false it closes. */ visible?: boolean; /** Called when the sheet is dismissed (via backdrop tap, swipe-down, or close()). */ onDismiss?: () => void; /** * Bottom-sheet snap points. * @default ['50%', '90%'] */ snapPoints?: (string | number)[]; /** * Which snap-point index to open at. * @default 0 */ initialSnapIndex?: number; /** * Whether closing the sheet fires onDismiss. * @default true */ enableDismissOnClose?: boolean; /** * Backdrop opacity when the sheet is open. * @default 0.5 */ backdropOpacity?: number; /** Which agent to connect to. */ agentName?: string; /** Input placeholder text. */ placeholder?: string; /** Seed messages shown on first render. */ initialMessages?: string[]; /** Title shown in the CopilotChat header area. */ headerTitle?: string; } /** Imperative handle exposed via ref. */ interface CopilotModalRef { /** Programmatically open the bottom sheet. */ open: () => void; /** Programmatically close the bottom sheet. */ close: () => void; } declare const CopilotModal: React.ForwardRefExoticComponent>; //#endregion //#region src/components/Markdown.d.ts /** * Style object accepted by `react-native-enriched-markdown` (and therefore * `react-native-streamdown`). Each key targets a markdown element; the * available properties vary per element — see the enriched-markdown style * reference for the full list. */ type MarkdownStyle = Record>; /** * Props for the CopilotMarkdown component. */ interface CopilotMarkdownProps { /** Markdown string to render. */ content: string; /** Optional style overrides merged on top of the defaults. */ style?: MarkdownStyle; /** Whether to enable the streaming fade-in animation (default: true). */ streamingAnimation?: boolean; } /** * Default markdown styles tuned for chat bubble display. * * Exported so consumers can spread and extend: * ```ts * import { defaultMarkdownStyles } from "@copilotkit/react-native"; * const custom = { ...defaultMarkdownStyles, h1: { fontSize: 28 } }; * ``` */ declare const defaultMarkdownStyles: MarkdownStyle; /** * Renders markdown content using `react-native-streamdown` with * pre-configured styles suited for CopilotKit chat bubbles. * * `react-native-streamdown` processes incomplete streaming markdown in the * background, rendering incrementally without visual glitches — ideal for * displaying LLM output as it arrives. * * Custom styles are merged on top of the defaults so callers only need * to override what they want to change. */ declare function CopilotMarkdown({ content, style, streamingAnimation }: CopilotMarkdownProps): react_jsx_runtime0.JSX.Element; //#endregion //#region src/components/messages/AssistantMessage.d.ts /** * Props for the AssistantMessage component. */ interface AssistantMessageProps { /** Markdown content to render inside the bubble */ content: string; /** When true, shows a typing indicator instead of content */ isLoading?: boolean; /** Optional timestamp displayed below the bubble */ timestamp?: Date; /** Optional style override for the outer container */ style?: ViewStyle; } /** * Left-aligned chat bubble for AI assistant responses. * * Renders markdown content via `CopilotMarkdown` and shows an animated * typing indicator when `isLoading` is true. */ declare function AssistantMessage({ content, isLoading, timestamp, style }: AssistantMessageProps): react_jsx_runtime0.JSX.Element; //#endregion //#region src/components/messages/UserMessage.d.ts /** * Props for the UserMessage component. */ interface UserMessageProps { /** Plain text content to display */ content: string; /** Optional timestamp displayed below the bubble */ timestamp?: Date; /** Optional style override for the outer container */ style?: ViewStyle; } /** * Right-aligned chat bubble for user messages. * * Renders plain text (no markdown) with a primary-color background * and white text. Optionally displays a subtle timestamp below. */ declare function UserMessage({ content, timestamp, style }: UserMessageProps): react_jsx_runtime0.JSX.Element; //#endregion export { AssistantMessage, type AssistantMessageProps, CopilotChat, type CopilotChatProps, CopilotMarkdown, type CopilotMarkdownProps, CopilotModal, type CopilotModalProps, type CopilotModalRef, UserMessage, type UserMessageProps, defaultMarkdownStyles }; //# sourceMappingURL=index.d.cts.map