import type { RxDocument } from './rx-document.d.ts'; declare type Buffer = any; export type RxAttachmentCreator = { id: string; /** * Content type like 'plain/text' */ type: string; /** * The data of the attachment. */ data: Blob; }; export type RxAttachmentCreatorBase64 = { id: string; /** * Content type like 'plain/text' */ type: string; /** * The data of the attachment as base64. */ data: string; // must be set manually length: number; }; 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; getDataBase64(): Promise; getStringData(): Promise; }