import { ObservableReactValue } from "../utils/observers"; import { IdType } from "../types"; export type AttachmentType = 'file' | 'image' | 'video'; export type Attachment = { type: AttachmentType; id: IdType; url: string; file?: File; poster?: string; }; declare class AttachmentModel { private _data; readonly progress: ObservableReactValue; readonly error: ObservableReactValue; readonly poster: ObservableReactValue; readonly isLoading: ObservableReactValue; private _file; private _id; private _url; constructor(_data: Partial); get id(): IdType; get data(): Partial; get file(): File; get url(): string; get type(): AttachmentType; get name(): string; get isGallery(): boolean; private _createPoster; setProgress: (n: number) => void; setError: (e: string) => void; setId: (id: IdType) => void; get contentData(): Attachment; private _createSelf; } export default AttachmentModel;