import { UserWithPubKey, InboxPublicView, FilesConfig, Inbox, InboxEntry, PagingList, PagingQuery } from '../../types'; import { InboxApiInterface } from './InboxApiInterface'; /** * Inbox API from the PrivMX Endpoint Web */ export declare class InboxApi implements InboxApiInterface { private api; constructor(api: InboxApiInterface); createInbox(contextId: string, users: UserWithPubKey[], managers: UserWithPubKey[], publicMeta: Uint8Array, privateMeta: Uint8Array, filesConfig: FilesConfig | undefined): Promise; updateInbox(inboxId: string, users: UserWithPubKey[], managers: UserWithPubKey[], publicMeta: Uint8Array, privateMeta: Uint8Array, filesConfig: FilesConfig | undefined, version: number, force: boolean, forceGenerateNewKey: boolean): Promise; getInbox(inboxId: string): Promise; listInboxes(contextId: string, query: PagingQuery): Promise>; getInboxPublicView(inboxId: string): Promise; deleteInbox(inboxId: string): Promise; readEntry(inboxEntryId: string): Promise; listEntries(inboxId: string, query: PagingQuery): Promise>; deleteEntry(inboxEntryId: string): Promise; openFile(fileId: string): Promise; readFromFile(fileHandle: number, length: number): Promise; seekInFile(fileHandle: number, position: number): Promise; closeFile(fileHandle: number): Promise; subscribeForInboxEvents(): Promise; unsubscribeFromInboxEvents(): Promise; subscribeForEntryEvents(inboxId: string): Promise; unsubscribeFromEntryEvents(inboxId: string): Promise; createFileHandle(publicMeta: Uint8Array, privateMeta: Uint8Array, filesize: number): Promise; prepareEntry(inboxId: string, data: Uint8Array, inboxFileHandles?: Array, userPrivKey?: string): Promise; writeToFile(inboxHandle: number, inboxFileHandle: number, dataChunk: Uint8Array): Promise; sendEntry(inboxHandle: number): Promise; }