import { Attachment } from './types'; export declare const MAX_ATTACHMENTS = 4; export declare const MAX_ATTACHMENT_BYTES: number; export type PendingAttachment = { key: string; file: File; /** Local object URL shown while uploading; revoked when the item goes away. */ preview?: string; /** Set once the upload succeeds. */ url?: string; }; export declare const isImage: (file: File) => boolean; /** * Images attached to the next message: checks type, size and count, uploads each one through `upload` (sync or * async), drops the ones that fail with an error message, and revokes local previews when they are no longer shown. */ export declare function useAttachments(upload: (file: File) => string | Promise): { items: PendingAttachment[]; error: string | undefined; ready: Attachment[]; uploading: boolean; add: (files: File[]) => void; remove: (key: string) => void; clear: () => void; }; export declare function AttachmentList({ items, onRemove }: { items: PendingAttachment[]; onRemove: (key: string) => void; }): import("@emotion/react/jsx-runtime").JSX.Element;