import { type ComponentPropsWithoutRef, type MouseEvent } from 'react'; import { useAttachments } from './AIMessageComposer'; export declare const Item: ({ file, imagePreviewSource, onDelete, onRetry, state, title, }: { file: File; state?: "uploading" | "finished" | "failed" | "pending" | (string & {}); title?: string; imagePreviewSource?: string; onDelete?: (_: MouseEvent) => void; onRetry?: (_: MouseEvent) => void; }) => import("react/jsx-runtime").JSX.Element; type Attachments = ReturnType; /** * The attachments picked in the composer. Its children render them: elements, or a function of * `useAttachments()`. Without children it shows an `Item` per picked attachment, each with a * delete button (an attachment's `meta.state` and `meta.previewUri` are used when set), and * nothing while none are picked. */ export declare const AttachmentPreview: { ({ children, className, ...restProps }: Omit, "children"> & { children?: React.ReactNode | ((_: Attachments) => React.ReactNode); }): import("react/jsx-runtime").JSX.Element | null; Item: ({ file, imagePreviewSource, onDelete, onRetry, state, title, }: { file: File; state?: "uploading" | "finished" | "failed" | "pending" | (string & {}); title?: string; imagePreviewSource?: string; onDelete?: (_: MouseEvent) => void; onRetry?: (_: MouseEvent) => void; }) => import("react/jsx-runtime").JSX.Element; }; export declare const chunk: (array: T, size: number) => T[]; export {}; //# sourceMappingURL=AttachmentPreview.d.ts.map