import { type ReactNode } from "react"; import { type NewConversationController, type UseNewConversationOptions } from "../hooks/use-new-conversation.js"; import type { ComposerVoiceInputOptions } from "./composer-transcription-control.js"; import { type SessionConversationProps } from "./session-conversation.js"; import { type SessionProxyBaseUrl } from "./session-proxy-scope.js"; export type NewConversationLabels = { title: string; placeholder: string; send: string; unavailable: string; retry: string; pending: string; finishingUploads: string; }; type Presentation = { composerProps?: SessionConversationProps["composerProps"] | undefined; modelPickerProps?: SessionConversationProps["modelPickerProps"] | undefined; /** The composer microphone: false hides it; options set its language or a check before it starts. */ voiceInput?: boolean | ComposerVoiceInputOptions | undefined; realtimeVoiceProps?: SessionConversationProps["realtimeVoiceProps"] | undefined; labels?: Partial | undefined; theme?: SessionConversationProps["theme"] | undefined; surface?: SessionConversationProps["surface"] | undefined; height?: SessionConversationProps["height"] | undefined; className?: string | undefined; }; export type NewConversationProps = UseNewConversationOptions & SessionProxyBaseUrl & Presentation; export type NewConversationViewProps = Presentation & { creation: NewConversationController; }; /** Standalone stock new-chat composer. OpenGeniChat uses this same implementation. */ export declare function NewConversation({ baseUrl, headers, fetch, ...props }: NewConversationProps): import("react").JSX.Element; /** Presentation for a new-chat controller kept above host layout changes. */ export declare function NewConversationView({ creation, labels: overrides, composerProps, modelPickerProps, voiceInput, realtimeVoiceProps, theme, surface, height, className, }: NewConversationViewProps): import("react").JSX.Element; /** * The voice-first start for a new chat, or null when the workspace offers no * voice model. Shared by the stock view and the console's own layouts. */ export declare function useNewConversationVoice(creation: NewConversationController, realtimeVoiceProps?: SessionConversationProps["realtimeVoiceProps"] | undefined): ReactNode; /** * What stands between a new chat and its creation: unavailable, a failed or * unconfirmed create (with Retry), or uploads still finishing. */ export declare function NewConversationStatus({ creation, labels: overrides, }: { creation: NewConversationController; labels?: Partial | undefined; }): import("react").JSX.Element; export {};