import { Context, PagingList, PagingQuery } from '../../types'; export interface ConnectionInterface { /** * * @param {PagingQuery} query - {@link PagingQuery `PagingQuery` object} * @returns {Promise>} */ listContexts(query: PagingQuery): Promise>; /** * Disconnects from the Bridge. * @returns {Promise} */ disconnect: () => Promise; /** * Gets ID of given connection * @returns {Promise} */ getConnectionId: () => Promise; /** * Deletes all instances of APIs with current connection * @returns {Promise} */ freeApis: () => Promise; }