UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

14 lines 1.03 kB
import type { FileLike } from 'react-file-utils'; import type { MessageInputProps } from '../MessageInput'; import type { MessageInputReducerAction, MessageInputState } from './useMessageInputState'; import type { CustomTrigger, DefaultStreamChatGenerics } from '../../../types/types'; export declare const useAttachments: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>(props: MessageInputProps<StreamChatGenerics, V>, state: MessageInputState<StreamChatGenerics>, dispatch: import("react").Dispatch<MessageInputReducerAction<StreamChatGenerics>>, textareaRef: React.MutableRefObject<HTMLTextAreaElement | undefined>) => { maxFilesLeft: number; numberOfUploads: number; removeFile: (id: string) => void; removeImage: (id: string) => void; uploadFile: (id: string) => void; uploadImage: (id: string) => Promise<void>; uploadNewFiles: (files: FileList | File[] | FileLike[]) => void; }; //# sourceMappingURL=useAttachments.d.ts.map