import type { ReactNode } from 'react'; export interface ReplyComposerProps { /** Who the reply goes to, as `To …` names it. */ to: string; /** The subject, when the caller lets it be typed; absent, the reply keeps its conversation's subject. */ subject?: { value: string; onChange: (value: string) => void; max: number; }; message: string; onMessageChange: (value: string) => void; messageMax: number; messagePlaceholder?: string; /** Where answers to the reply go, said where the reply is written. */ note: ReactNode; busy: boolean; onSend: () => void; /** Off when the person reading may not send; the reason belongs in `note`. */ canSend?: boolean; sendLabel?: string; } /** The form: who it's to, the subject when typed, the message, where answers go, and Send. */ export declare function ReplyComposer(props: ReplyComposerProps): import("react").JSX.Element; export declare namespace ReplyComposer { var displayName: string; } /** One message in a reply thread. */ export interface ReplyThreadMessage { id: string; atMs: number; /** `out` for what the business sent; `in` for what the customer wrote where the business can read it. */ direction: 'out' | 'in'; /** Who, as the line above the message says it: `to jane@example.com`, `Jordan Lee wrote`. */ label: string; body: string; } export interface ReplyThreadProps { title: string; messages: ReplyThreadMessage[]; /** Set when there are more messages than shown. */ moreNote?: string | null; } /** The messages, oldest or newest first as the caller orders them; an answer from the customer is set apart. */ export declare function ReplyThread(props: ReplyThreadProps): import("react").JSX.Element; export declare namespace ReplyThread { var displayName: string; } export default ReplyComposer;