import { InboxEntryPayload, InboxPublicView } from '../types/inboxes'; import { Endpoint } from './Endpoint'; /** * Provides a wrapper for functions used in public connection ( created using `Endpoint.connectPublic). */ export declare class PublicConnection { private platform; constructor(platform: Endpoint); /** * Sends data and optional files to an Inbox. * @param {string} inboxId ID of Inbox to send the entry to * @param {InboxEntryPayload} entry {@link InboxEntryPayload `InboxEntryPayload`} object * @returns {Promise} a promise that resolves when the data and files have been successfully sent to the Inbox */ sendDataToInbox(inboxId: string, entry: InboxEntryPayload): Promise; /** * Fetches Inbox public view. * @param inboxId ID of Inbox to get public meta */ getInboxPublicView(inboxId: string): Promise; }