import React from "react"; import { AttachmentService, AttachmentUpload } from "../../AttachmentService"; import { Attachment } from "../../util/attrs"; export interface Props { attachmentService: AttachmentService; attachment: Attachment; children: (preview: AttachmentUpload) => React.ReactNode; } export interface State { observable: ReturnType; } export declare class AttachmentUploadSubscribe extends React.Component { readonly state: State; render(): JSX.Element; static getDerivedStateFromProps: React.GetDerivedStateFromProps; }