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