import { RxDocument } from './rx-document'; declare type Buffer = any; export type RxAttachmentCreator = { id: string, data: string | Blob | Buffer, type: string }; 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; }