import { ComponentProps, ReactNode } from 'react'; export type ChatAttachmentState = 'uploading' | 'error' | 'done'; export interface ChatAttachmentProps extends Omit, 'title'> { /** File name or main label. */ title?: ReactNode; /** Secondary line — file size, type, or the error message. */ description?: ReactNode; /** * Content of the leading media square. Defaults to a file icon, or a * spinner while `state` is `"uploading"`. */ media?: ReactNode; /** * Lifecycle of the attachment. * @defaultValue "done" */ state?: ChatAttachmentState; /** When provided, renders a remove button that calls it. */ onRemove?: () => void; /** * Accessible label for the remove button. * @defaultValue "Remove attachment" */ removeLabel?: string; } export declare function ChatAttachment({ className, title, description, media, state, onRemove, removeLabel, children, ...props }: ChatAttachmentProps): import("react/jsx-runtime").JSX.Element; export declare namespace ChatAttachment { var displayName: string; } //# sourceMappingURL=chat-attachment.d.ts.map