@comapeo/ipc
Version:
IPC wrappers for CoMapeo Core
20 lines (19 loc) • 633 B
TypeScript
/**
* @param {import('@comapeo/core').MapeoManager} manager
* @param {import('./lib/sub-channel.js').MessagePortLike} messagePort
*/
export function createMapeoServer(manager: import('@comapeo/core').MapeoManager, messagePort: import('./lib/sub-channel.js').MessagePortLike): {
close(): void;
};
export class MapeoRpcApi {
/**
* @param {import('@comapeo/core').MapeoManager} manager
*/
constructor(manager: import('@comapeo/core').MapeoManager);
/**
* @param {string} projectId
* @returns {Promise<boolean>}
*/
assertProjectExists(projectId: string): Promise<boolean>;
#private;
}