import { RxDocument } from 'nxdb-old/src/types/rx-document'; declare type Buffer = any; export type RxAttachmentCreator = { id: string; /** * Content type like 'plain/text' */ type: string; /** * The data of the attachment. */ data: Blob; }; export declare class RxAttachment { readonly doc: RxDocument; readonly id: string; readonly type: string; readonly length: number; readonly digest: string; readonly rev: string; remove(): Promise; getData(): Promise; getStringData(): Promise; }