UNPKG

@assistant-ui/react

Version:

React components for AI chat.

17 lines 785 B
import { Attachment, PendingAttachment } from "../../types/AttachmentTypes"; import { AttachmentAdapter } from "./AttachmentAdapter"; export declare class CompositeAttachmentAdapter implements AttachmentAdapter { private _adapters; accept: string; constructor(adapters: AttachmentAdapter[]); add(state: { file: File; }): Promise<Omit<PendingAttachment, "status"> & { status?: import("../../types/AttachmentTypes").PendingAttachmentStatus; }>; send(attachment: PendingAttachment): Promise<Omit<import("../..").CompleteAttachment, "status"> & { status?: import("../../types/AttachmentTypes").CompleteAttachmentStatus; }>; remove(attachment: Attachment): Promise<void>; } //# sourceMappingURL=CompositeAttachmentAdapter.d.ts.map