import { ClassProp } from 'class-variance-authority/types'; import { ClassValue } from 'clsx'; import * as React_2 from 'react'; import { VariantProps } from 'class-variance-authority'; /** * Merge Tailwind class names with conflict resolution. * * The library's primitives use this internally so consumer-supplied `className` * always wins over the default classes. Re-exported for consumers that want the * same merge behavior in their own code. */ export declare function cn(...inputs: ClassValue[]): string; export declare const ComposerHint: React_2.ForwardRefExoticComponent>; export declare interface ComposerHintProps extends Omit, "children">, VariantProps { /** The hint copy. Nullish renders nothing but keeps the live region mounted. */ children?: React_2.ReactNode; /** Hide the leading dot (e.g. a bare character counter). */ dot?: boolean; /** * A stable sentence for assistive tech when `children` changes too often to * announce (a live counter). When set, the visible row is `aria-hidden` and * this rides the live region instead. */ srOnlyText?: string | null; /** * The hint's copy is still resolving (a policy that has to wait on a fetch, * e.g. a per-workspace attachment cap). Holds one line of space so the * composer does not jump when the words land. * * Distinct from the empty state, and the distinction matters here: nullish * `children` means "nothing to say" and must render NOTHING while KEEPING the * live region mounted, which is what lets the next real hint be announced. * `loading` means "something to say, words pending", so it renders a * placeholder and stays silent to assistive tech until the copy is real. */ loading?: boolean; } export declare const composerHintVariants: (props?: ({ tone?: "warning" | "neutral" | "danger" | "pending" | null | undefined; } & ClassProp) | undefined) => string; export declare const CopyMessageButton: React_2.ForwardRefExoticComponent>; export declare interface CopyMessageButtonProps extends Omit, "onError" | "children"> { /** The plain text to copy — the markdown/plain the row rendered, never HTML. */ text: string; /** * The rich flavour, built on demand. Returning `null` (or omitting this) * writes plain text only. */ html?: () => string | null; /** Fired when BOTH clipboard paths fail. The consumer owns the toast. */ onError?: (error: unknown) => void; /** Fired after a successful write, with the flavours actually written. */ onCopied?: (flavours: { plain: true; html: boolean; }) => void; /** Accessible name at rest. Default `"Copy message"`. */ copyLabel?: string; /** Accessible name while the check is up. Default `"Copied"`. */ copiedLabel?: string; /** * A copy is in flight: swaps the icon for a `` and force-disables. * Most copies are instant and need this never; it exists for the case the * `html` thunk is genuinely expensive (rendering a long answer), where the * button would otherwise sit dead under the cursor with no signal. */ isCopying?: boolean; } export declare const DaySeparator: React_2.MemoExoticComponent>>; export declare interface DaySeparatorProps extends Omit, "children"> { /** * The resolved boundary label ("Today", "Yesterday", "12 March"). Nullish * renders nothing — the consumer's "no boundary here" answer. */ label?: string | null; /** * Render the bar's geometry with a placeholder in place of the label, for a * transcript still hydrating. Distinct from the empty state: a nullish * `label` means "no boundary here" and renders NOTHING, while `loading` means * "there is a boundary, its words have not arrived" and holds the space so * the rows above and below do not jump when it resolves. */ loading?: boolean; } export declare const ListeningWave: React_2.ForwardRefExoticComponent>; export declare interface ListeningWaveProps extends Omit, "children"> { /** The live transcript so far. Empty shows `placeholder`. */ transcript: string; /** Stop recording and keep what was said. */ onStop: () => void; /** * The host composer's typing cap in px. The strip grows to it, then scrolls * pinned to the tail. */ maxHeight: number; /** Shown before the first words land. Default `"Listening…"`. */ placeholder?: string; /** Accessible name for the stop button. Default `"Stop voice input"`. */ stopLabel?: string; /** * The mic is opening and no audio has been heard yet. The meter holds still * (an animated meter with no signal behind it is a lie about what the * microphone is doing) and the transcript line shows a placeholder. * * Distinct from the empty state: an empty `transcript` with the mic already * live shows `placeholder` ("Listening…"), which is a true statement. This is * the moment before that, when the app cannot yet claim to be listening. */ connecting?: boolean; /** * Classes for the equalizer bars, so a surface can tint the meter to its own * action accent. `className` lands on the root and cannot reach them. * Defaults to `bg-primary`. */ barClassName?: string; } export declare const MessageRegenerate: React_2.ForwardRefExoticComponent>; export declare interface MessageRegenerateProps extends Omit, "children"> { /** Re-run the prompt this answer came from. */ onRegenerate: () => void; /** * Why the control is disabled, for the consumer's tooltip. Not rendered here * — it is returned on `data-disabled-reason` so a tooltip can read it. */ disabledReason?: string; /** Accessible name. Default `"Regenerate response"`. */ label?: string; /** * A regeneration is in flight: swaps the icon for a `` and * force-disables, so the same turn cannot be queued twice. Mirrors * `MessageRetry`'s `isRetrying` exactly, since the two sit in the same rail * and a reader should not have to learn two busy languages. */ isRegenerating?: boolean; } export declare const MessageTimestamp: React_2.MemoExoticComponent>>; export declare interface MessageTimestampProps extends Omit, "children" | "title" | "dateTime"> { /** ISO-8601 moment. Lands on `dateTime`; nullish renders nothing. */ dateTime?: string | null; /** The short visible label ("Just now", "14:32"). Nullish renders nothing. */ label?: string | null; /** * The full absolute moment ("12 March 2026 at 14:32"). Carried on `title` AND * `aria-label` so it is reachable without a hover. Falls back to `label`. */ absoluteLabel?: string; /** * Hold the label's footprint with a placeholder while the row hydrates. * Distinct from the empty state: no `dateTime` means the turn has no * persisted row yet and NOTHING renders, while `loading` means the row * exists and its time is still arriving. */ loading?: boolean; } export { }